1DBIx::Class::Serialize:U:sSetrorCaobnlter(i3b)uted PerlDDBoIcxu:m:eCnltaastsi:o:nSerialize::Storable(3)
2
3
4
6 DBIx::Class::Serialize::Storable - hooks for Storable nfreeze/thaw
7
9 This component is now DEPRECATED. It has not been providing any useful
10 functionality for quite a while, and in fact destroys prefetched
11 results in its current implementation. Do not use!
12
14 # in a table class definition
15 __PACKAGE__->load_components(qw/Serialize::Storable/);
16
17 # meanwhile, in a nearby piece of code
18 my $cd = $schema->resultset('CD')->find(12);
19 # if the cache uses Storable, this will work automatically
20 $cache->set($cd->ID, $cd);
21
23 This component adds hooks for Storable so that result objects can be
24 serialized. It assumes that your result object class ("result_class")
25 is the same as your table class, which is the normal situation.
26
28 The following hooks are defined for Storable - see the documentation
29 for "Hooks" in Storable for detailed information on these hooks.
30
31 STORABLE_freeze
32 The serializing hook, called on the object during serialization. It can
33 be inherited, or defined in the class itself, like any other method.
34
35 STORABLE_thaw
36 The deserializing hook called on the object during deserialization.
37
39 Check the list of additional DBIC resources.
40
42 This module is free software copyright by the DBIx::Class (DBIC)
43 authors. You can redistribute it and/or modify it under the same terms
44 as the DBIx::Class library.
45
46
47
48perl v5.28.0 2017-12-08DBIx::Class::Serialize::Storable(3)