Memcaching Plan of Attack

Jason Tang jason at dragor.net
Fri Apr 11 10:33:27 BST 2008


Hey Toby

Hope you're well in the land down under

On Fri Apr 11, 2008 at 10:07:22AM +1000, Toby Corkindale wrote:
> 
> Memcached can expire things itself; it's a global setting, I think.

Its settable on the instance of memcached I think..
 
> Then, put some hooks into the DBIC table classes so that upon update, they also
> update memcached.

*nods*
> 
> Try to cache entire chunks of data though, rather than just single rows.
> So, for eg, if your listing item needs three SELECTs to build it, then in DBIC
> you want to provide a ResultSet function that gets the whole thing - then put
> the memcache logic into (or near) that function.

Yups that's my general feeling too.. cache the chunks!


Cheers
Jason
-- 
Jason Tang  - email: jason at dragor.net - msn: jason-msn at dragor.net


More information about the london.pm mailing list