[Dbix-class] REPOST: memcache / DBIx::Class

Frank Speiser frank at takkle.com
Tue May 29 20:14:16 GMT 2007


Hi Folks,

[ APOLOGIES IF I MUFFLED UP YOUR EMAIL CLIENT ]

I was wondering if anyone had thoughts on how to best implement memcache 
support.
Currently, I am looking for a way to pull out the prepared SQL from the 
statement handle, and maybe override or subclass DBI's execute method.

What I'm trying to do is make sure I don't have to wrap every* call to 
cache...

I would think we might try do it at resultset 
(http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/ResultSet.pm),
but Matt Trout was saying in this thread:

http://www.mail-archive.com/dbix-class@lists.rawmode.org/msg03182.html

... to do it at the storage layer. I don't know if that is the best 
solution for us, but if anyone has managed to get memcache built in so 
that you don't have to wrap every call the the DB, I'd appreciate 
comments on how you got it to work.

Thanks,
Frank Speiser



More information about the Dbix-class mailing list