# Valkey

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

ID: Q1103 · Revision: 1151

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

Website: https://valkey.io/



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\.[^valkey-readme][^valkey-migration]

## Application caching and data structures

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\.[^valkey-home]

## Client and format compatibility

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\.[^valkey-migration]

## Migration and cutover

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\.[^valkey-migration]

## Persistence choices

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\.[^valkey-persistence]

## Replication boundaries

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\.[^valkey-replication]

## Licensing and substitution

Valkey's BSD\-3\-Clause license provides an alternative licensing basis to current Redis distributions\. Valkey can substitute for [Redis Open Source](/redis) 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\.[^valkey-license][^valkey-readme][^valkey-migration]

Valkey can substitute for [Memcached](/memcached) 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\.[^valkey-home][^valkey-persistence][^memcached-about][^memcached-faq]

## Capabilities and substitutions

### Redis OSS compatibility baseline — limited

Documented migration targets Redis OSS 7\.2 and earlier; later Redis data files are not covered\.[^valkey-migration]

Use case: Application caching and key\-value operations · Platforms: Linux, macOS, BSD, Containers · Region: Deployment, release, command and persistence requirements apply

### RDB and AOF persistence — supported

Supports snapshots and append\-only logging with configurable durability tradeoffs\.[^valkey-persistence]

Use case: Application caching and key\-value operations · Platforms: Linux, macOS, BSD, Containers · Region: Deployment, release, command and persistence requirements apply

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

Assessment: substitutes for the documented Redis OSS 7\.2\-and\-earlier baseline; newer Redis features and data files need separate migration evidence\.[^valkey-readme][^valkey-migration]

Use case: Compatible caching and data structures · Platforms: Linux, macOS, BSD, Containers · Region: Deployment, release, command and persistence requirements apply

### [Substitute for Memcached](/memcached) — limited

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\.[^valkey-persistence][^valkey-home][^memcached-about][^memcached-faq]

Use case: Rebuildable application caching with optional structured operations · Platforms: Self\-hosted server · Region: Unspecified

## References

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

[^valkey-readme]: [valkey project overview](<https://github.com/valkey-io/valkey/blob/unstable/README.md>) — Project scope, deployment and data structure capabilities (vendor; retrieved 2026-10-07T02:15:27Z)

[^valkey-migration]: [Migration from Redis to Valkey](<https://valkey.io/topics/migration/>) — Redis OSS 7\.2 compatibility boundary, later file incompatibility and cutover risks (vendor; retrieved 2026-10-07T02:15:53Z)

[^valkey-persistence]: [Valkey persistence](<https://valkey.io/topics/persistence/>) — RDB/AOF durability and synchronization policy (vendor; retrieved 2026-10-07T02:16:17Z)

[^valkey-replication]: [Valkey replication](<https://valkey.io/topics/replication/>) — Asynchronous copies, WAIT and empty\-primary restart risk (vendor; retrieved 2026-10-07T02:16:25Z)

[^valkey-home]: [Valkey overview](<https://valkey.io/>) — Caching, native data structures, Lua scripting and client libraries (vendor; retrieved 2026-10-09T04:51:00Z)

[^memcached-about]: [About Memcached](<https://memcached.org/about>) — Distributed cache for reusable application values (vendor; retrieved 2026-10-09T04:51:00Z)

[^memcached-faq]: [Memcached FAQ](<https://docs.memcached.org/userguide/faq/>) — Ephemeral data, cache misses and application design (vendor; retrieved 2026-10-09T04:51:00Z)

[^source-9]: [https://valkey\.io/](<https://valkey.io/>) — Caching, native collections, scripting and clients; Memcached sources explain the shared rebuildable\-cache use case\. (vendor; retrieved 2026-10-07T02:15:27Z)

Source revision: https://substitutefor.net/entities/Q1103?revision=1151
