Memcached Vs Local LRU Cache

Ivan Krstić krstic at solarsail.hcs.harvard.edu
Tue Sep 26 13:46:36 UTC 2006


anand wrote:
> LRU: 10,000 reads averages to about 16 ms that is 0.0016 ms per read
> Memcached: 10,000 reads averages to about 2837 ms that is 0.28 ms per read

This comparison doesn't make even a hint of sense. If an in-program LRU
cache is adequate for your use case, don't look at memcached.

If you need your resident cache set to be (much) larger than the amount
of RAM in your machine, or you need machine redundancy, or you need to
distribute rather than replicate the cache, then memcached is the right
answer.

-- 
Ivan Krstić <krstic at solarsail.hcs.harvard.edu> | GPG: 0x147C722D


More information about the memcached mailing list