Single-server Level of Memcache
Learn what problems we can solve at the single server level of Memcache.
We'll cover the following
Introduction to the single server level
We'll improve certain aspects of Memcached by modifying its internal mechanisms for a single server. Memcached uses four main data structures to form a key-value store:
A Hash table
A Cache item data structure
A Slab allocator
A Least Recently Used (LRU) list
Hashtable with separate chaining
The hashtable uses hash functions to look up items using the key quickly. As illustrated below, the hashtable is an array of buckets, where each bucket is a linked list.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.