[Catalyst] Serialize a resultset?

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


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.


More information about the Catalyst mailing list