{"schemaVersion":"1.0","record":{"label":"Memcached","description":"Memcached cache and key-value software with documented persistence and substitution limits.","aliases":[],"kind":"software","website":"https://memcached.org/","overview":"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.","license":"BSD-3-Clause","lifecycle":"active","example":false,"features":[{"name":"Rebuildable application cache","status":"supported","detail":"Caches values to reduce repeated database or application work.","useCase":"Application caching and key-value operations","platforms":["Self-hosted servers","Containers"],"region":"Deployment, release, command and persistence requirements apply","evidence":[{"url":"https://memcached.org/about","locator":"Distributed application cache and database-load reduction","retrievedAt":"2026-10-07T02:16:09Z","kind":"vendor"}]},{"name":"Warm restart","status":"limited","detail":"Preserves cache only through compatible clean restarts; does not provide crash safety.","useCase":"Application caching and key-value operations","platforms":["Self-hosted servers","Containers"],"region":"Deployment, release, command and persistence requirements apply","evidence":[{"url":"https://docs.memcached.org/features/restart/","locator":"Clean restart recovery, incompatible settings and no crash safety","retrievedAt":"2026-10-07T02:16:31Z","kind":"vendor"}]}],"alternatives":[],"slug":"memcached","draftAlternatives":[{"targetSlug":"redis","status":"limited","detail":"Assessment: substitutes for cache-only workloads with a client-protocol change; does not cover Redis structures or durable-state expectations.","useCase":"Rebuildable key-value caching","platforms":["Self-hosted servers","Containers"],"region":"Deployment, release, command and persistence requirements apply","evidence":[{"url":"https://memcached.org/about","locator":"Distributed application cache and database-load reduction","retrievedAt":"2026-10-07T02:16:09Z","kind":"vendor"},{"url":"https://docs.memcached.org/userguide/faq/","locator":"Official indexed guidance: ephemeral store, cache misses and unsupported database use","retrievedAt":"2026-10-07T02:16:09Z","kind":"vendor"},{"url":"https://redis.io/docs/latest/develop/data-types/","locator":"Native collections, caching, streams and extension mechanisms","retrievedAt":"2026-10-07T02:18:59Z","kind":"vendor"}]}],"evidence":[{"url":"https://memcached.org/about","locator":"Distributed application cache and database-load reduction","retrievedAt":"2026-10-07T02:16:09Z","kind":"vendor"},{"url":"https://docs.memcached.org/userguide/faq/","locator":"Official indexed guidance: ephemeral store, cache misses and unsupported database use","retrievedAt":"2026-10-07T02:16:09Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/memcached/memcached/blob/master/COPYING","locator":"Applicable license terms and version scope","retrievedAt":"2026-10-07T02:15:36Z","id":"memcached-license","title":"memcached license","kind":"vendor"},{"url":"https://memcached.org/about","locator":"Distributed application cache and database-load reduction","retrievedAt":"2026-10-07T02:16:09Z","id":"memcached-about","title":"About Memcached","kind":"vendor"},{"url":"https://docs.memcached.org/userguide/faq/","locator":"Official indexed guidance: ephemeral store, cache misses and unsupported database use","retrievedAt":"2026-10-07T02:16:09Z","id":"memcached-faq","title":"Memcached FAQ","kind":"vendor"},{"url":"https://docs.memcached.org/features/proxy/","locator":"Build-time enablement, pools and Lua route configuration","retrievedAt":"2026-10-07T02:16:25Z","id":"memcached-proxy","title":"Memcached built-in proxy","kind":"vendor"},{"url":"https://docs.memcached.org/features/restart/","locator":"Clean restart recovery, incompatible settings and no crash safety","retrievedAt":"2026-10-07T02:16:31Z","id":"memcached-restart","title":"Memcached warm restart","kind":"vendor"},{"url":"https://docs.memcached.org/features/flashstorage/","locator":"RAM-resident keys, external values and restart data loss","retrievedAt":"2026-10-07T02:16:25Z","id":"memcached-flash","title":"Memcached flash storage","kind":"vendor"},{"url":"https://redis.io/docs/latest/develop/data-types/","locator":"Native collections, caching, streams and extension mechanisms","retrievedAt":"2026-10-07T02:18:59Z","id":"redis-types","title":"Redis data types","kind":"vendor"}],"overviewCitations":["memcached-about","memcached-faq"],"licenseCitations":["memcached-license"],"sections":[{"id":"routing","heading":"Distribution and routing","paragraphs":[{"id":"routing-detail","content":[{"text":"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."}],"citations":["memcached-about","memcached-proxy"]}]},{"id":"restart","heading":"Warm restart is not crash recovery","paragraphs":[{"id":"restart-detail","content":[{"text":"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."}],"citations":["memcached-restart"]}]},{"id":"flash","heading":"Flash storage boundaries","paragraphs":[{"id":"flash-detail","content":[{"text":"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."}],"citations":["memcached-flash"]}]},{"id":"license","heading":"Licensing and application design","paragraphs":[{"id":"license-detail","content":[{"text":"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."}],"citations":["memcached-license","memcached-faq"]}]},{"id":"fit","heading":"Substitution considerations","paragraphs":[{"id":"fit-detail","content":[{"text":"Memcached can substitute for "},{"text":"Redis Open Source","targetSlug":"redis"},{"text":" 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."}],"citations":["memcached-about","memcached-restart","memcached-flash","redis-types"]}]}]},"id":"Q1355","revision":1403,"updatedAt":"2026-10-14T12:20:49Z","sourceUrl":"https://substitutefor.net/entities/Q1355?revision=1403"}}