X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSerialize%2FStorable.pm;h=b3ac6049afd05b8cbe738b2ffbc4f8cc0f166ef4;hb=de60a93dfda2e3384c2f6a00d55b352a4b4188c0;hp=fc94fa2f22a54249459ff445c5fc7827f0e91f5a;hpb=24d67825c6b2e604a349ccd5de0df1956c0d98dc;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Serialize/Storable.pm b/lib/DBIx/Class/Serialize/Storable.pm index fc94fa2..b3ac604 100644 --- a/lib/DBIx/Class/Serialize/Storable.pm +++ b/lib/DBIx/Class/Serialize/Storable.pm @@ -1,5 +1,6 @@ package DBIx::Class::Serialize::Storable; use strict; +use warnings; use Storable; sub STORABLE_freeze { @@ -20,10 +21,9 @@ sub STORABLE_thaw { __END__ -=head1 NAME +=head1 NAME DBIx::Class::Serialize::Storable - hooks for Storable freeze/thaw - (EXPERIMENTAL) =head1 SYNOPSIS @@ -32,16 +32,14 @@ __END__ # meanwhile, in a nearby piece of code my $cd = $schema->resultset('CD')->find(12); - $cache->set($cd->ID, $cd); # if the cache uses Storable, this - # will work automatically + # if the cache uses Storable, this will work automatically + $cache->set($cd->ID, $cd); =head1 DESCRIPTION This component adds hooks for Storable so that row objects can be serialized. It assumes that your row object class (C) is -the same as your table class, which is the normal situation. However, -this code is not yet well tested, and so should be considered -experimental. +the same as your table class, which is the normal situation. =head1 AUTHORS