Memcaching Plan of Attack
jason at dragor.net
Fri Apr 11 10:33:27 BST 2008
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.
> 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!
Jason Tang - email: jason at dragor.net - msn: jason-msn at dragor.net
More information about the london.pm