I forgot something:

You must set My::ResultSet->memd ( $cache_memcached_object ) or caching
won't work.

Keys for memcached are generated from all query's data: where, attrs,
fields, tables, etc.
And if you source is changed (for example, just new column has been added) -
new key will differ and old memcached cache (without new column) will not be
used.
_______________________________________________
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