Memcached
memcached.org
- Free plan
- macOS
- Linux
- API
- Self-hosted
What Memcached is
Memcached is a free, self-hosted in-memory key-value cache designed to reduce database work for dynamic web applications. It stores small pieces of data, such as strings, objects, and results from database calls, API calls or page rendering, so applications can retrieve cached values instead of repeating work. Clients use key-based hashing to select a server, and servers operate independently without synchronization or replication. Items can expire after a set time; the default eviction policy is least recently used. Memcached is a developer tool, not code acceleration software or database middleware. Its API is available for most popular languages, and installation instructions cover Linux distributions including Debian/Ubuntu and Red Hat/CentOS. TLS authentication and encryption are supported from version 1.5.13 when built with TLS and used with a TLS-capable client. Optional extstore moves values to flash while keeping keys and the hash table in memory; it requires version 1.6.0 or newer, and a restart effectively empties its flash data. Memcached originated in 2003. The plan is free.
Who it suits
It suits developers who want a self-hosted cache for database, API or page-rendering results. Teams should account for its independent-server model and the security conditions around TLS and SASL.
Good to know, and what to watch
- Free and self-hosted.
- Caches database, API and page-rendering results.
- Items can expire; default eviction is LRU.
- API available for most popular languages.
- Optional extstore can move values to flash.
- Servers do not synchronize or replicate.
- SASL does not encrypt communications and is unsuitable over the internet.
- Extstore requires flash, and restart empties its flash data.
- Use cases documentation cites a 1 MB item-size limit.
Plans
Every plan and priceMemcached
Free plan
The verdict
Memcached offers a focused caching layer for dynamic applications, with expiration and eviction controls. Its server model, item-size limit and security constraints should fit the intended deployment.
What the maker publishes
- Cached data
- It stores small chunks of arbitrary data, such as strings and objects, including results from database calls, API calls, or page rendering. source
- Cluster model
- Clients use a key-based hashing algorithm to select a server, while servers operate independently without synchronization or replication. source
- Developer audience
- The documentation describes Memcached as a developer tool and says it is not code acceleration software or database middleware. source
- Expiration and eviction
- Items can expire after a specified time, and the default eviction policy is least recently used (LRU). source
- Flash storage
- The optional extstore feature moves values to external storage while keeping keys and the hash table in memory, and requires Memcached 1.6.0 or newer. source
- Flash storage limit
- Extstore requires flash storage rather than rotational media, and a Memcached restart effectively empties its flash data. source
- Founded
- 2003 source
- Installation
- The downloads page provides a source tarball and installation instructions, including package prerequisites for Debian/Ubuntu and Red Hat/CentOS. source
- Item size limit
- The use cases documentation cites a 1 MB item-size limit. source
- Language support
- The maker says its API is available for most popular languages. source
- Origin
- Memcached was originally developed by Brad Fitzpatrick for LiveJournal in 2003. source
- Performance
- The documentation says queries on slow machines should run well under 1 ms and high-end servers can serve millions of keys per second. source
- Purpose
- Memcached is a distributed in-memory key-value cache intended to speed up dynamic web applications by reducing database load. source
- SASL security
- SASL can authenticate clients but does not encrypt communications, and the documentation says it is not suitable for use over the internet. source
- Support
- The project directs users to its Discord chat, documentation, and mailing list for questions, and points to Cache Forge for business support. source
- TLS security
- Memcached 1.5.13 and later supports authentication and encryption via TLS when built with TLS enabled and used with a TLS-capable client. source
Checked against the maker's pages on 30 Sept 2026.