1MooseX::Storage::IO::AtUosmeircFCiolnet(r3i)buted Perl DMoocousmeeXn:t:aSttioornage::IO::AtomicFile(3)
2
3
4

NAME

6       MooseX::Storage::IO::AtomicFile - An Atomic File I/O role
7

VERSION

9       version 0.52
10

SYNOPSIS

12         package Point;
13         use Moose;
14         use MooseX::Storage;
15
16         with Storage('format' => 'JSON', 'io' => 'AtomicFile');
17
18         has 'x' => (is => 'rw', isa => 'Int');
19         has 'y' => (is => 'rw', isa => 'Int');
20
21         1;
22
23         my $p = Point->new(x => 10, y => 10);
24
25         ## methods to load/store a class
26         ## on the file system
27
28         $p->store('my_point.json');
29
30         my $p2 = Point->load('my_point.json');
31

METHODS

33       load ($filename)
34       store ($filename)
35

SUPPORT

37       Bugs may be submitted through the RT bug tracker
38       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or
39       bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-
40       Storage@rt.cpan.org>).
41
42       There is also a mailing list available for users of this distribution,
43       at <http://lists.perl.org/list/moose.html>.
44
45       There is also an irc channel available for users of this distribution,
46       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
47

AUTHORS

49       ·   Chris Prather <chris.prather@iinteractive.com>
50
51       ·   Stevan Little <stevan.little@iinteractive.com>
52
53       ·   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
54
56       This software is copyright (c) 2007 by Infinity Interactive, Inc.
57
58       This is free software; you can redistribute it and/or modify it under
59       the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.30.1                      2020-01-30MooseX::Storage::IO::AtomicFile(3)
Impressum