{"schemaVersion":"1.0","record":{"label":"Valkey","description":"Valkey cache and key-value software with documented persistence and substitution limits.","aliases":[],"kind":"software","website":"https://valkey.io/","overview":"Valkey is an open-source data-structure server for key-value workloads, with native structures and an extension mechanism. It continues the Redis OSS lineage under a BSD license. Its compatibility target is especially relevant to applications using Redis OSS 7.2 or earlier, while newer Valkey and Redis versions can introduce different features and data formats.","license":"BSD-3-Clause","lifecycle":"active","example":false,"features":[{"name":"Redis OSS compatibility baseline","status":"limited","detail":"Documented migration targets Redis OSS 7.2 and earlier; later Redis data files are not covered.","useCase":"Application caching and key-value operations","platforms":["Linux","macOS","BSD","Containers"],"region":"Deployment, release, command and persistence requirements apply","evidence":[{"url":"https://valkey.io/topics/migration/","locator":"Redis OSS 7.2 compatibility boundary, later file incompatibility and cutover risks","retrievedAt":"2026-10-07T02:15:53Z","kind":"vendor"}]},{"name":"RDB and AOF persistence","status":"supported","detail":"Supports snapshots and append-only logging with configurable durability tradeoffs.","useCase":"Application caching and key-value operations","platforms":["Linux","macOS","BSD","Containers"],"region":"Deployment, release, command and persistence requirements apply","evidence":[{"url":"https://valkey.io/topics/persistence/","locator":"RDB/AOF durability and synchronization policy","retrievedAt":"2026-10-07T02:16:17Z","kind":"vendor"}]}],"alternatives":[],"slug":"valkey","draftAlternatives":[{"targetSlug":"redis","status":"limited","detail":"Assessment: substitutes for the documented Redis OSS 7.2-and-earlier baseline; newer Redis features and data files need separate migration evidence.","useCase":"Compatible caching and data structures","platforms":["Linux","macOS","BSD","Containers"],"region":"Deployment, release, command and persistence requirements apply","evidence":[{"url":"https://valkey.io/topics/migration/","locator":"Redis OSS 7.2 compatibility boundary, later file incompatibility and cutover risks","retrievedAt":"2026-10-07T02:15:53Z","kind":"vendor"},{"url":"https://github.com/valkey-io/valkey/blob/unstable/README.md","locator":"Project scope, deployment and data structure capabilities","retrievedAt":"2026-10-07T02:15:27Z","kind":"vendor"}]},{"targetSlug":"memcached","status":"limited","detail":"Can cache application values while offering native collections and optional RDB/AOF persistence. Requires cache-client and command changes rather than a Memcached-protocol endpoint swap.","useCase":"Rebuildable application caching with optional structured operations","platforms":["Self-hosted server"],"region":"Unspecified","evidence":[{"url":"https://valkey.io/","locator":"Caching, native data structures, Lua scripting and client libraries","retrievedAt":"2026-10-09T04:51:00Z","kind":"vendor"},{"url":"https://memcached.org/about","locator":"Distributed cache for reusable application values","retrievedAt":"2026-10-09T04:51:00Z","kind":"vendor"},{"url":"https://docs.memcached.org/userguide/faq/","locator":"Ephemeral data, cache misses and application design","retrievedAt":"2026-10-09T04:51:00Z","kind":"vendor"},{"url":"https://valkey.io/topics/persistence/","locator":"RDB/AOF durability and synchronization policy","retrievedAt":"2026-10-07T02:16:17Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/valkey-io/valkey/blob/unstable/README.md","locator":"Project scope, deployment and data structure capabilities","retrievedAt":"2026-10-07T02:15:27Z","kind":"vendor"},{"url":"https://valkey.io/topics/migration/","locator":"Redis OSS 7.2 compatibility boundary, later file incompatibility and cutover risks","retrievedAt":"2026-10-07T02:15:53Z","kind":"vendor"},{"url":"https://valkey.io/","locator":"Caching, native collections, scripting and clients; Memcached sources explain the shared rebuildable-cache use case.","retrievedAt":"2026-10-07T02:15:27Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/valkey-io/valkey/blob/unstable/COPYING","locator":"Applicable license terms and version scope","retrievedAt":"2026-10-07T02:15:36Z","id":"valkey-license","title":"valkey license","kind":"vendor"},{"url":"https://github.com/valkey-io/valkey/blob/unstable/README.md","locator":"Project scope, deployment and data structure capabilities","retrievedAt":"2026-10-07T02:15:27Z","id":"valkey-readme","title":"valkey project overview","kind":"vendor"},{"url":"https://valkey.io/topics/migration/","locator":"Redis OSS 7.2 compatibility boundary, later file incompatibility and cutover risks","retrievedAt":"2026-10-07T02:15:53Z","id":"valkey-migration","title":"Migration from Redis to Valkey","kind":"vendor"},{"url":"https://valkey.io/topics/persistence/","locator":"RDB/AOF durability and synchronization policy","retrievedAt":"2026-10-07T02:16:17Z","id":"valkey-persistence","title":"Valkey persistence","kind":"vendor"},{"url":"https://valkey.io/topics/replication/","locator":"Asynchronous copies, WAIT and empty-primary restart risk","retrievedAt":"2026-10-07T02:16:25Z","id":"valkey-replication","title":"Valkey replication","kind":"vendor"},{"url":"https://valkey.io/","locator":"Caching, native data structures, Lua scripting and client libraries","retrievedAt":"2026-10-09T04:51:00Z","id":"valkey-home","title":"Valkey overview","kind":"vendor"},{"url":"https://memcached.org/about","locator":"Distributed cache for reusable application values","retrievedAt":"2026-10-09T04:51:00Z","id":"memcached-about","title":"About Memcached","kind":"vendor"},{"url":"https://docs.memcached.org/userguide/faq/","locator":"Ephemeral data, cache misses and application design","retrievedAt":"2026-10-09T04:51:00Z","id":"memcached-faq","title":"Memcached FAQ","kind":"vendor"}],"overviewCitations":["valkey-readme","valkey-migration"],"licenseCitations":["valkey-license"],"sections":[{"id":"practical-uses","heading":"Application caching and data structures","paragraphs":[{"id":"cache-and-collections","content":[{"text":"Valkey can cache reusable application results and also operate directly on collections such as hashes, lists, sets and sorted sets. Built-in Lua scripting provides another way to combine server-side work. These capabilities are useful when a project grows beyond storing one serialized value per key, for example when it needs a ranked collection or shared counters alongside cached responses. The correct choice depends on the operations the application actually performs."}],"citations":["valkey-home"]}]},{"id":"compatibility","heading":"Client and format compatibility","paragraphs":[{"id":"compatibility-detail","content":[{"text":"Valkey supports RESP2/RESP3 clients and Redis-style configuration. Its migration guide explicitly excludes data files produced by Redis CE 7.4 and later from the compatible path. Client connectivity and persisted-file compatibility are separate properties; one does not establish the other."}],"citations":["valkey-migration"]}]},{"id":"cutover","heading":"Migration and cutover","paragraphs":[{"id":"cutover-detail","content":[{"text":"For compatible older sources, the guide describes snapshot, replication and selected-key migration. Snapshot transfer requires interruption; replication can reduce downtime but still risks losing active writes during cutover. These are scoped procedures, not universal conversions between every Redis-family release."}],"citations":["valkey-migration"]}]},{"id":"persistence","heading":"Persistence choices","paragraphs":[{"id":"persistence-detail","content":[{"text":"Valkey supports RDB snapshots, AOF logging and combined persistence, with the option to disable persistence for cache-only use. Snapshot intervals and AOF synchronization policy affect the amount of recent data exposed to a crash. The durable-state requirement should be explicit before choosing settings; cache reconstruction and recovery of authoritative application state are different goals."}],"citations":["valkey-persistence"]}]},{"id":"replication","heading":"Replication boundaries","paragraphs":[{"id":"replication-detail","content":[{"text":"Valkey normally replicates asynchronously. WAIT acknowledgements reduce some loss risks but do not make failover strongly consistent. The documentation also warns about a nonpersistent primary restarting empty and propagating that empty state to replicas. Keeping another copy is therefore not equivalent to having an independent historical backup or a tested recovery plan."}],"citations":["valkey-replication"]}]},{"id":"fit","heading":"Licensing and substitution","paragraphs":[{"id":"fit-detail","content":[{"text":"Valkey's BSD-3-Clause license provides an alternative licensing basis to current Redis distributions. Valkey can substitute for "},{"text":"Redis Open Source","targetSlug":"redis"},{"text":" for compatible caching and data-structure workloads, particularly the older OSS command and persistence baseline. The assessment does not assert parity with every newer Redis feature or a direct restore path from every release. Required commands, modules and source formats must be identified."}],"citations":["valkey-license","valkey-readme","valkey-migration"]},{"id":"memcached-fit","content":[{"text":"Valkey can substitute for "},{"text":"Memcached","targetSlug":"memcached"},{"text":" for rebuildable key-value caching when the application can change its cache client and command handling. Its native collections and optional persistence provide room for additional requirements without changing to a different server later. This is a use-case substitution, not Memcached protocol compatibility. Plan cache expiry, eviction and repopulation deliberately; selecting persistence does not by itself make cached values authoritative or guarantee that stale data is safe to reuse."}],"citations":["valkey-home","valkey-persistence","memcached-about","memcached-faq"]}]}]},"id":"Q1103","revision":1151,"updatedAt":"2026-10-13T22:13:07Z","sourceUrl":"https://substitutefor.net/entities/Q1103?revision=1151"}}