[Dbix-class] Resultset with memcached
Ash Berlin
ash_cpan at firemirror.com
Thu Jan 10 09:48:09 GMT 2008
On Jan 10, 2008, at 3:08 AM, <sindharta_tanuwijaya at yahoo.co.jp> wrote:
>
>
> Actually, I think that the bottleneck in my case here is the time it
> takes to perform database queries. I haven't tried
> DBIx::Class::Cursor::Cached yet, but looking at the posts, it seems
> more appropriate for me than Cache::Memcached. Any thought how long
> a value will stay (valid) inside the cache in
> DBIx::Class::Cursor::Cached ?
>
> Sindharta
>
How ever long you tell it to:
$rs->search($cond_hash, { cache_for => 300 } ) # Cache for 300 seconds.
-ash
More information about the DBIx-Class
mailing list