MemCached (the deamon)
The Deamon you run, usually on linux but it seems to be windows compatible too, sits in the background waiting for connections acting like a warehouse.
MemCache PHP Client
The Client provides an API for your language, in this case, PHP. You then use the commands at hand to put and retrieve stuff from the 'warehouse' which is in RAM - MUCH quicker than disk loading.
What is it?
Its effectively a RAM Disk where you can just dump stuff. That stuff is persistent (eh, between website page loads).
Example: My Thingy Ma Jig Site. I've just installed it on there. I have had to hack a little of the drupal core code, but basically it does a look up in the memcache and if something exists, like the URL Alias array, it grabs that back rather than having to hit the database. Usually you'd hit the database on EVERY page load when lookup up url aliases. Now, once its looked up, it gets commited to the array in the cache. Then the next guy comes along and there is already an existing array from last time with the url's in it! No database hit needed.
MemCache also uses zlib to compress cached data too.
Page load times have almost halved (Pages that were just under 400ms are now about 200ms). So far, its cost me a max of 32Mb RAM (currently using about 200kb of the cache). There are far fewer database hits (I'm getting about an 80% cache hit ratio).
What's the downside? As far as I can see - very little.
You can use MemCache for almost anything - not just PHP. There is one site which has a video which always plays - they use memcache to stream it rather than getting 1000 people to load it off the HDD.
I'm sure some people out there could find a use for this...
[center]