If you want a drop-in replacement under a permissive licence, Valkey is the default choice. If you only cache simple values, Memcached is smaller and easier. If you want more throughput from fewer machines and can accept a source-available licence, look at Dragonfly. If you are on .NET and want a different engine, Garnet speaks the Redis protocol. KeyDB is a multithreaded fork, but check how actively it is maintained before betting on it.

And one correction up front: Redis is open source again in one sense. Many articles written in 2024 say Redis "is no longer open source", which stopped being the whole story in 2025. The timeline below is from Redis's own licence pages, checked on 2026-12-05.

Quick-pick table

NeedPickWhy
Drop-in, permissive, foundation-runValkeyBSD, Linux Foundation, forked from Redis 7.2.4
Simple cache, nothing elseMemcachedBSD-3-Clause, tiny feature set
Higher throughput per nodeDragonflyRedis and Memcached API, source-available
.NET shop, Redis clientsGarnetMIT, RESP protocol, Microsoft Research
Multithreaded Redis forkKeyDBBSD-3-Clause, Redis protocol
Stay with RedisRedis 8AGPLv3 now an option

What changed with the Redis licence, and when

  • Redis 7.2 and earlier: BSD-3-Clause.
  • March 2024: Redis moved Redis 7.4 to a dual RSALv2 or SSPLv1 licence. Neither is OSI-approved open source. Redis said its aim was that cloud providers offering competitive services could no longer use new versions free of charge.
  • 28 March 2024: the Linux Foundation announced its intent to form Valkey, continuing from Redis 7.2.4 under BSD-3-Clause, with backers including AWS, Google Cloud, Oracle, Ericsson and Snap.
  • From Redis 8 (announced 1 May 2025): Redis Open Source is offered under a tri-licence: RSALv2, SSPLv1 or AGPLv3. AGPLv3 is OSI-approved copyleft; the network clause means modified versions offered as a network service must make their source available. Redis 8 also folds the former Redis Stack modules (JSON, time series, probabilistic types and query engine) into core, under the same tri-licence.

Redis says there are no plans to change or add to the current configuration. For most teams running Redis inside their own product, none of this changes day-to-day use. The licence matters if you resell it as a service, ship it inside a product you distribute, or your company policy bans AGPL or source-available software.

Valkey

What it is: A key-value datastore backed by the Linux Foundation, under the BSD licence, for caching, queues and primary-database workloads. Best for: anyone who wants Redis behaviour with permissive terms.

  • Strengths: the project site lists Valkey 9.2.1, released 26 November 2026, with a new Path Hash data type, forkless snapshots and a B+ tree backing for large sorted sets. Multi-vendor backing from the launch announcement.
  • Limits: the fork point is Redis 7.2.4, so features added only to Redis 8 are not guaranteed to appear in Valkey in the same form. Check the commands and modules you use.
  • Licence/price: BSD, free. Aiven's FAQ lists a free Valkey plan; check its pricing page for limits.

Choose it if you want the lowest-friction replacement.

Memcached

What it is: A free, open source, distributed memory object caching system for small pieces of data, aimed at reducing database load. Best for: plain caching.

  • Strengths: simple, mature, BSD-3-Clause; the site lists v1.6.46 with release notes dated 2026-11-28.
  • Limits: a cache, not a data-structure server. No sorted sets, streams or persistence in the Redis sense, so it is not a swap if you use those.
  • Licence/price: BSD-3-Clause, free.

Choose it if you only store and fetch cached blobs.

Dragonfly

What it is: An in-memory data store described as a modern replacement for Redis and Memcached, with those APIs. Best for: teams that want fewer, bigger nodes.

  • Strengths: the README says it is compatible with Redis and Memcached APIs and needs no code changes; it states about 185 Redis commands implemented, roughly equivalent to the Redis 5.0 API.
  • Limits: that compatibility claim is pegged to roughly the Redis 5.0 command set, so test newer commands. The licence is the Dragonfly Source-Available License for version 2.1 and later: production use is capped at 100 vCPUs across concurrent instances, above which you need a commercial licence. That is source-available, not OSI open source. The README also makes throughput claims (25X); I did not benchmark it, so treat that as the vendor's claim.
  • Licence/price: source-available as above; free under the cap.

Choose it if you have measured that a single Redis node is your bottleneck and the licence fits.

Garnet

What it is: A remote cache-store from Microsoft Research that uses the RESP wire protocol, so unmodified Redis clients such as StackExchange.Redis can connect. It is built on .NET. Best for: .NET teams curious about a different engine.

  • Strengths: MIT licence; clustering, replication and recovery features listed in the README.
  • Limits: a different engine means different edge cases. Verify the commands and data types you rely on before switching.
  • Licence/price: MIT, free.

Choose it if you work in .NET and want a permissive licence with Redis client compatibility.

KeyDB

What it is: A multithreaded fork of Redis, originally from Snap, under BSD-3-Clause, with Active Replication, FLASH storage and subkey expires. Best for: teams already running it.

  • Strengths: Redis protocol compatibility and a permissive licence.
  • Limits: I could not confirm recent release or commit dates from the repository page, which showed release v6.3.0 without a date. Before choosing it for a new project, check its issue tracker and recent commits yourself.
  • Licence/price: BSD-3-Clause, free.

Choose it if you already use it or have checked its maintenance status.

Do you need Redis at all?

Before swapping engines, check what the instance does. Redis and its alternatives are used for caching, session storage, queues, rate limiting and leaderboards. For a small business application with one database, many of those jobs can be done by the database itself or by an in-process cache, and removing a moving part is the cheapest migration. PostgreSQL can hold sessions and simple job queues, and a cache with a short time-to-live in application memory covers many read-heavy pages.

If you do keep a separate cache, treat it as disposable. Design the app so a cold cache is slower but correct, which makes switching between Redis, Valkey and Memcached far less risky. The licence question then reduces to what you run, how you run it and whether you offer it to others, and for most internal systems the answer is simple: use Valkey or Redis under the terms that suit your company policy, and move on.

How to choose

  1. Default: Valkey, unless you use Redis 8-only features.
  2. Only caching: Memcached.
  3. Need Redis 8 features such as vector sets or the integrated JSON and query modules: stay on Redis and read the AGPLv3 terms.
  4. Throughput problems: measure first. Dragonfly or a bigger Valkey node might both fix it.
  5. Policy bans AGPL or source-available: Valkey, Memcached, Garnet or KeyDB.
  6. Managed service: compare your cloud's offering; many providers moved to Valkey, which you should confirm with each vendor's own page.

Switching notes

Redis-to-Valkey is usually a version-and-config exercise because Valkey forked from 7.2.4: check your Redis version, modules and any Redis 7.4 or 8 features first. Migrate with replication or an RDB snapshot, keep the old node read-only while you test, and replay application traffic against the new one. Persistence settings, ACLs and Lua scripts deserve explicit tests. If your cache sits in front of a database you may also be weighing, see Supabase alternatives; for Rust-built data stores, see Rust databases and search engines.

Common questions

What is the best open source alternative to Redis? Valkey, for most teams.

Is Redis still open source? Redis 8 can be used under AGPLv3, which is OSI-approved; 7.4 was RSALv2 or SSPLv1.

Do I need to leave Redis? Usually not, unless you resell it or your policy bans the licences.

Valkey versus Redis? Valkey forked from 7.2.4 in March 2024 under BSD and the Linux Foundation.

Is Dragonfly free? Source-available; production use capped at 100 vCPUs without a commercial licence.

No affiliate links; none of these vendors paid for a mention. This is general information, not legal advice.

If you would rather have it built and kept running

If you are a Malaysian SME or small team and want a system built, hosted and kept running by one accountable person, see custom system development and the monthly maintenance contract, which starts from about RM3,000 per month (an estimate, confirmed after a short scoping call). You can reach me from the hire page.