# Memcached

Memcached cache and key\-value software with documented persistence and substitution limits\.

ID: Q1355 · Revision: 1403

Type: software · License: BSD\-3\-Clause[^memcached-license] · Status: active

Website: https://memcached.org/



Memcached is a distributed key\-value cache for reducing repeated application work and database load\. It stores application values for rapid reuse and is intended as temporary storage whose contents can be regenerated\. Its role is different from an authoritative database: an application should remain correct when entries expire, are evicted or disappear after a failure\.[^memcached-about][^memcached-faq]

## Distribution and routing

Cache clients and deployment topology determine where values are stored and retrieved\. Memcached also offers a built\-in proxy with backend pools and configurable routing, including rules based on key prefixes or listening ports\. The proxy is an optional build feature, not automatically enabled in every binary\. Its route library can be customized, but that is separate from treating cache nodes as a durable database cluster\.[^memcached-about][^memcached-proxy]

## Warm restart is not crash recovery

Warm restart can preserve cache contents across a clean restart under compatible settings\. It requires a deliberate shutdown path and cannot compensate for updates missed while the instance is stopped\. Changes to settings such as the memory limit or maximum item size can cause a clean cache instead\. Persistent memory support does not make this mechanism crash\-safe\.[^memcached-restart]

## Flash storage boundaries

Extstore moves values to flash while keeping keys and tracking information in RAM\. It can expand useful cache capacity, especially for larger values, but the documentation states that a restart effectively empties the flash cache\. This is capacity tiering for expendable cached objects, not a general replacement for durable disk\-backed database storage\.[^memcached-flash]

## Licensing and application design

Memcached is BSD\-3\-Clause licensed\. Its FAQ emphasizes the ephemeral design and warns against applications depending on recovering every key or retaining irreplaceable session state\. Adding a cache also adds network round trips and can fail to improve an already efficient workload\. Cache placement and miss behavior are therefore part of application design rather than an automatic performance upgrade\.[^memcached-license][^memcached-faq]

## Substitution considerations

Memcached can substitute for [Redis Open Source](/redis) when the requirement is rebuildable key\-value caching and the application can adopt Memcached's client protocol\. This narrow overlap does not cover Redis's richer structures, streams, scripting or configured durable state\. Warm restart and flash storage are useful distinctions, but neither justifies treating Memcached as a drop\-in persistent Redis database\.[^memcached-about][^memcached-restart][^memcached-flash][^redis-types]

## Capabilities and substitutions

### Rebuildable application cache — supported

Caches values to reduce repeated database or application work\.[^memcached-about]

Use case: Application caching and key\-value operations · Platforms: Self\-hosted servers, Containers · Region: Deployment, release, command and persistence requirements apply

### Warm restart — limited

Preserves cache only through compatible clean restarts; does not provide crash safety\.[^memcached-restart]

Use case: Application caching and key\-value operations · Platforms: Self\-hosted servers, Containers · Region: Deployment, release, command and persistence requirements apply

### [Substitute for Redis Open Source](/redis) — limited

Assessment: substitutes for cache\-only workloads with a client\-protocol change; does not cover Redis structures or durable\-state expectations\.[^memcached-about][^memcached-faq][^redis-types]

Use case: Rebuildable key\-value caching · Platforms: Self\-hosted servers, Containers · Region: Deployment, release, command and persistence requirements apply

## References

[^memcached-license]: [memcached license](<https://github.com/memcached/memcached/blob/master/COPYING>) — Applicable license terms and version scope (vendor; retrieved 2026-10-07T02:15:36Z)

[^memcached-about]: [About Memcached](<https://memcached.org/about>) — Distributed application cache and database\-load reduction (vendor; retrieved 2026-10-07T02:16:09Z)

[^memcached-faq]: [Memcached FAQ](<https://docs.memcached.org/userguide/faq/>) — Official indexed guidance: ephemeral store, cache misses and unsupported database use (vendor; retrieved 2026-10-07T02:16:09Z)

[^memcached-proxy]: [Memcached built\-in proxy](<https://docs.memcached.org/features/proxy/>) — Build\-time enablement, pools and Lua route configuration (vendor; retrieved 2026-10-07T02:16:25Z)

[^memcached-restart]: [Memcached warm restart](<https://docs.memcached.org/features/restart/>) — Clean restart recovery, incompatible settings and no crash safety (vendor; retrieved 2026-10-07T02:16:31Z)

[^memcached-flash]: [Memcached flash storage](<https://docs.memcached.org/features/flashstorage/>) — RAM\-resident keys, external values and restart data loss (vendor; retrieved 2026-10-07T02:16:25Z)

[^redis-types]: [Redis data types](<https://redis.io/docs/latest/develop/data-types/>) — Native collections, caching, streams and extension mechanisms (vendor; retrieved 2026-10-07T02:18:59Z)

Source revision: https://substitutefor.net/entities/Q1355?revision=1403
