1MooseX::Storage::FormatU:s:eSrtoCroanbtlrei(b3u)ted PerlMoDoosceuXm:e:nSttaotriaogne::Format::Storable(3)
2
3
4

NAME

6       MooseX::Storage::Format::Storable - A Storable serialization role
7

VERSION

9       version 0.53
10

SYNOPSIS

12         package Point;
13         use Moose;
14         use MooseX::Storage;
15
16         with Storage('format' => 'Storable');
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 freeze/thaw into
26         ## a specified serialization format
27
28         # pack the class with Storable
29         my $storable_data = $p->freeze();
30
31         # unpack the storable data into the class
32         my $p2 = Point->thaw($storable_data);
33

DESCRIPTION

35       This module will "thaw" and "freeze" Moose classes using Storable. It
36       uses "Storable::nfreeze" by default so that it can be easily used in
37       IPC scenarios across machines or just locally.
38
39       One important thing to note is that this module does not mix well with
40       the IO modules. The structures that "freeze" and "thaw" deal with are
41       Storable's memory representation, and (as far as I know) that is not
42       easily just written onto a file. If you want file based serialization
43       with Storable, the please look at the MooseX::Storage::IO::StorableFile
44       role instead.
45

METHODS

47       freeze
48       thaw ($stored)
49

SUPPORT

51       Bugs may be submitted through the RT bug tracker
52       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or
53       bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-
54       Storage@rt.cpan.org>).
55
56       There is also a mailing list available for users of this distribution,
57       at <http://lists.perl.org/list/moose.html>.
58
59       There is also an irc channel available for users of this distribution,
60       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
61

AUTHORS

63       •   Chris Prather <chris.prather@iinteractive.com>
64
65       •   Stevan Little <stevan.little@iinteractive.com>
66
67       •   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
68
70       This software is copyright (c) 2007 by Infinity Interactive, Inc.
71
72       This is free software; you can redistribute it and/or modify it under
73       the same terms as the Perl 5 programming language system itself.
74
75
76
77perl v5.34.0                      2021-07-2M2ooseX::Storage::Format::Storable(3)
Impressum