On 5/29/07, Oleg Pronin <[EMAIL PROTECTED]> 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

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to