Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gaylord Aulke's Blog:
Dumping MemcacheD Content (Keys) with PHP
Sep 02, 2008 @ 17:58:59

In a recent blog post Gaylord Aulke illustrated a method for dumping the (key) content from a memcached cache in a friendly, formatted way.

When i did some optimization of a cluster based webapp lately, I was wondering how Memcache was speading my cache entries over the cluster. So i did some research for monitoring tools. [...] Inspired by [memcache.php], i wrote a small script that fetches all data from a memcache cluster, gets all keys out of it and then sorts and displays them in a list. Yes it it ugly and yes: the memcacheD is not answering other requests while doing a cachedump.

He includes the 22 line script in the post to spit back the data in a simple array. From there it can be styled whoever you'd like.

tagged: memcached content key dump output memcachephp statistics

Link:

Harun Yayli's Blog:
memcache.php flushes servers
Aug 29, 2008 @ 18:45:29

Harun Yayli mentions some updates to his memcache.php project (providing statistics on the optimization your site is gaining from using the memcached extension).

Your good comments from all over the world about memcache.php is amazing. Thank you all! I've recently received a contribution from Michael Gauthier. I took the liberty to tweak a bit and now memcache.php can flush individual server (no flush all servers yet).

The latest version of the file can be downloaded here and some sample output can be seen here.

tagged: memcachephp memcache project statistics flush server

Link:


Trending Topics: