1DBIx::Class::Serialize:U:sSetrorCaobnlter(i3b)uted PerlDDBoIcxu:m:eCnltaastsi:o:nSerialize::Storable(3)
2
3
4

NAME

6           DBIx::Class::Serialize::Storable - hooks for Storable freeze/thaw
7

SYNOPSIS

9           # in a table class definition
10           __PACKAGE__->load_components(qw/Serialize::Storable/);
11
12           # meanwhile, in a nearby piece of code
13           my $cd = $schema->resultset('CD')->find(12);
14           # if the cache uses Storable, this will work automatically
15           $cache->set($cd->ID, $cd);
16

DESCRIPTION

18       This component adds hooks for Storable so that row objects can be
19       serialized. It assumes that your row object class ("result_class") is
20       the same as your table class, which is the normal situation.
21

HOOKS

23       The following hooks are defined for Storable - see the documentation
24       for "Hooks" in Storable for detailed information on these hooks.
25
26   STORABLE_freeze
27       The serializing hook, called on the object during serialization. It can
28       be inherited, or defined in the class itself, like any other method.
29
30   STORABLE_thaw
31       The deserializing hook called on the object during deserialization.
32

AUTHORS

34       David Kamholz <dkamholz@cpan.org>
35

LICENSE

37       You may distribute this code under the same terms as Perl itself.
38
39
40
41perl v5.12.0                      2010-05-12DBIx::Class::Serialize::Storable(3)
Impressum