May 10, 2010

reminder about memcache

Tags:
Filed under: PHP,ZenMagick — DerManoMann @ 1:51 am

Just a little reminder for myself about how to set up memcache on XP:

  1. Start here
  2. Download the dll from pierre
  3. For stats and stuff listen to myself

December 9, 2008

memcache stats/admin

Tags: , , , ,
Filed under: PHP,ZenMagick — DerManoMann @ 4:38 am

I’ve been playing around with implementing new ZMCache provider. xcache is nice and easy to test, in particular since it comes with a simple admin interface to dump the cache entries.

I just found something similar for memcache and it was really a big help.

Besides being able to verify that adding/removing from memcache worked, it helped figuring out how to retreive the stored items and, more importantly, the cache keys.
Since ZMCache supports grouping of entries the only way to handling this is to iterate over all entries and compare prefixes.

Initially I implemented some internal tracking. However, I wasn’t sure whether that would stay in sync over time. Iterating over entries might not be the most performant operation, but considering that this is ever going to happen from within the admin interface of ZenMagick this should be fine.