[Catalyst] Serialize a resultset?

Octavian Râşniţă orasnita at gmail.com
Tue Oct 27 07:21:49 GMT 2009


Hi,

Can a DBIC resultset be serialized in order to be stored in the cache?

With other words, is it possible to do:

my $cache = $c->cache;
my $feeds = $cache->get($pg);

unless (defined $feeds) {
$feeds = $c->model("DB::Feed")->get_feeds($pg);
$cache->set($pg, $feeds, 10);
}

Thank you.

--
Octavian




More information about the Catalyst mailing list