Definition

Memcached

Memcached is an open source, distributed memory object caching system that alleviates database load to speed up dynamic Web applications

The system caches data and objects in memory to minimize the frequency with which an external database or API (application program interface) must be accessed.

In the Memcached system, each item comprises a key, an expiration time, optional flags, and raw data. When an item is requested, Memcached checks the expiration time to see if the item is still valid before returning it to the client. The cache can be seamlessly integrated with the application by ensuring that the cache is updated at the same time as the database.

By default, Memcached acts as a Least Recently Used cache plus expiration timeouts. If the server runs out of memory, it looks for expired items to replace. If additional memory is needed after replacing all the expired items, Memcached replaces items that have not been requested for a certain length of time (the expiration timeout period or longer), keeping more recently requested information in memory.

Memcached consists of four fundamental components:

  • Client software, which receives a list of available Memcached servers.
  • A client-based hashing algorithm, which chooses a server based on the key input.
  • Server software, which stores the values with their keys into an internal hash table.
  • Server algorithms, which determine when to discard old data or reuse memory.

Users of Memcached include Bebo, Craigslist, Digg, Flickr, LiveJournal, Mixi, Twitter, Typepad, Wikipedia, WordPress, Yellowbot, and YouTube.

Contributor(s): Stan Gibilisco
This was last updated in June 2013
Posted by: Margaret Rouse

Email Alerts

Register now to receive SearchAWS.com-related news, tips and more, delivered to your inbox.
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

More News and Tutorials

Do you have something to add to this definition? Let us know.

Send your comments to techterms@whatis.com