Characteristics
Distributed key-value store (hashtable)
Limited size – key,value pairs are discarded when cache is full
* Cache eviction policy: LRU (least-recently used).
* More details: cache divided in HOT, WARM and COLD; new
items enter the HOT; cache eviction moves object to the
lower level.
Designed for
Architecture
Memcached limitations:
On a cache miss, multiple clients may end up trying to set the
value of a cache entry.
For a value updated very frequently, writes may be reordered
and the old value get written in the cache.
Solution [from Facebook]:
* Clients get leases for writing the value of a key. This
guarantees that a single client writes at a time.
Memcached Limitations: No Replication