For years, the in-memory cache decision was simple: use Redis. In March 2024, Redis Ltd. moved Redis from the permissive BSD licence to a source-available dual licence (RSALv2 and SSPLv1). Within days, the Linux Foundation launched Valkey, a BSD-licensed fork of Redis 7.2.4 backed by AWS, Google Cloud, Oracle and others. Then Redis 8 added AGPLv3 as a third licence option, making Redis open source again under OSI terms, while also folding the old Redis Stack modules (JSON, search, time series and probabilistic structures) into the core.
So in 2026 there are real choices. Here's how to make one.
At a glance
| Redis (8.x) | Valkey (9.x) | Memcached | |
|---|---|---|---|
| Licence | Choice of RSALv2, SSPLv1 or AGPLv3 | BSD-3-Clause | BSD |
| Governance | Redis Ltd. | Linux Foundation, multi-vendor | Community |
| Data structures | Strings, hashes, lists, sets, sorted sets, streams, plus built-in JSON, search, time series, vector sets, probabilistic | Same core as Redis 7.2, plus its own additions since the fork; modules available separately | Key-value strings only |
| Persistence | RDB snapshots and AOF | RDB and AOF | None (pure cache) |
| Replication and clustering | Yes | Yes | Client-side sharding only |
| Multithreading | I/O threads | Enhanced multithreaded I/O | Multithreaded |
| Managed services | Redis Cloud; Azure Managed Redis | AWS ElastiCache and MemoryDB, Google Memorystore, many others | ElastiCache, Memorystore |
| Protocol compatibility | — | Drop-in for Redis 7.2-era features and clients | Different protocol |
Valkey
Valkey is a drop-in replacement for everything Redis had at the fork: same protocol, same core commands, same clients. It has since added its own performance work (notably multithreaded I/O and memory efficiency improvements) and features. AWS made Valkey the default for ElastiCache and MemoryDB, usually at a lower price than the Redis OSS engine, and Google Memorystore offers it too.
Choose it if you want a permissively licensed, vendor-neutral cache or data store, especially on AWS or GCP, and you mainly use core data structures.
Redis
Redis 8 offers the broadest built-in feature set: JSON documents, secondary indexing and full-text search, vector search, time series and probabilistic structures without separate modules. Redis Ltd.'s own cloud service adds active-active geo-replication and enterprise features.
Choose it if you need those built-in features, or you want the enterprise and cloud offering from Redis Ltd. Check the licence options with your legal team. For most companies using Redis internally, none of the three licences cause problems. They mainly matter if you offer Redis as a service or distribute modified versions.
Memcached
Memcached is a simple, fast, multithreaded key-value cache. No persistence, no rich data structures, no replication. It's excellent at one thing: caching strings and serialised objects with very low overhead.
Choose it if you only need a plain cache, already run it, or have very large, simple caching workloads. For new projects, Valkey or Redis usually make more sense, because you'll want rate limiting, queues, locks or sorted sets eventually.
Common uses and fit
| Use | Valkey | Redis | Memcached |
|---|---|---|---|
| Page and query caching | ✓ | ✓ | ✓ |
| Sessions | ✓ | ✓ | ✓ (no persistence) |
| Rate limiting and counters | ✓ | ✓ | Limited |
| Leaderboards (sorted sets) | ✓ | ✓ | — |
| Distributed locks | ✓ | ✓ | — |
| Lightweight queues and streams | ✓ | ✓ | — |
| JSON documents with search | Via modules | Built in | — |
| Vector similarity search | Via modules | Built in (vector sets, search) | — |
For vector search specifically, compare against pgvector, Pinecone and Qdrant before using a cache as your vector store.
Migrating Redis to Valkey
For most applications, it's straightforward:
- Check which Redis version and features you use. Anything up to Redis 7.2 is compatible.
- If you use features added only in later Redis versions or Redis Stack modules, find equivalents or keep Redis.
- On AWS, ElastiCache supports in-place upgrades from Redis OSS to Valkey.
- Test with your real client libraries and workloads, then switch.
Choose Valkey if…
- you want a BSD-licensed, vendor-neutral option
- you're on AWS or GCP and want lower managed-service prices
- you use core data structures: caching, sessions, rate limits, queues, locks
Choose Redis if…
- you need built-in JSON, search, vector or time-series features
- you want Redis Ltd.'s enterprise or cloud service
- the AGPL or source-available licences are acceptable for your use
Choose Memcached if…
- you need only a simple, fast cache and already run it
Summary
For most new deployments in 2026, Valkey is a sensible default for caching and common data-structure uses, especially on managed cloud services. Choose Redis when its built-in search, JSON and vector features matter. Memcached remains a good, simple cache, but has fewer reasons to be chosen for new work.
We design caching and data layers and run managed caches on AWS, GCP and Azure as part of our cloud and infrastructure work. Talk to us if you're planning a migration.