uses for memcache

Cahill, Earl ecahill at corp.untd.com
Fri Apr 29 13:30:26 PDT 2005


Been using memcache to cache conf files for a little bit now, and am pretty
well thinking it rules.  It just works.  Anyway, I have been pondering other
uses for memcache and have come up with at least two, which others are
likely already doing, but here you go

 

1.	System/network wide locking.  Try and add a key based on your
host/process name, perhaps with a ttl.  When you finish with your process,
delete the key.  If the process dies, the ttl kicks in.
2.	Service checks.  Guessing memcache is about as fast as snmp, and I
think easier to implement.  So your monitor box tries to add a key to
memcache named something like ping.$time, with ttl of a minute.  Be a pretty
nice heart beat.

 

Just wondering in what other ways people are using memcache beyond perhaps a
simple database cache or the like.

 

Earl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20050429/b30dbd4d/attachment.html


More information about the memcached mailing list