[Dbix-class] REPOST: memcache / DBIx::Class
Brandon Black
blblack at gmail.com
Wed May 30 00:49:18 GMT 2007
On 5/29/07, Oleg Pronin <syber.rus at gmail.com> wrote:
> Did you mean to blow the whole cache in memcached ?
> Do you know all the keys related to your result source stored there ?
> There might be a million keys.
Yes, there might. Could easily make it tunable to use one of two
approaches (different applications with different workloads will do
better with one or the other):
1) Actually delete the keys on invalidation
2) Increment a cache_generation number on invalidation, and don't
consider cache results valid if their cache_generation number is out
of date (perhaps deleting them then on access). This is somewhat like
Perl's method caching.
-- Brandon
More information about the Dbix-class
mailing list