I was wondering if anyone had any suggestions for how to properly use memcached (http://www.danga.com/memcached/) with DBIx::Class.

When one tries to store a resultset in memcached, you get the error "Can't store CODE items", which makes sense.

It seems like I really only have one choice, which is to create a string/arrayref/hashref of the data returned from the resultset before storing it in memcached and using it in my code. But that feels a little ugly to me.

Any ideas?

- Jim

PS - I'm running running both DBIx::Class and Cache::Memcached under Catalyst, if it matters.

_______________________________________________
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