macrostack
Head-to-head · In-memory data stores & caching

Valkey vs Memcached

Both are alternatives to Redis. Here's how they stack up — verified facts, no spin.

Also searched as Memcached vs Valkey — same comparison, one verdict.

The short answer

Valkey and Memcached are closely matched on ownership (96 vs 95) — this one comes down to pricing and to which trade-offs below you can live with.

96

Valkey

TOP PICK

The Linux Foundation fork — same Redis, governance that cannot be revoked.

OPEN SOURCEBSD-3-ClauseSELF-HOSTLOCAL-FIRST

Valkey is the community fork of Redis taken from the last BSD-licensed release, now under Linux Foundation stewardship with AWS, Google and Oracle contributing. It is the same codebase, so the protocol, commands and clients are identical and migration is a hostname change. BSD-3-Clause, around 27k stars. The argument for it is not technical — it is that no single company can relicense it, which is precisely the event that created it. Performance has since moved ahead of Redis in several published benchmarks through multi-threaded I/O work the fork prioritised.

95

Memcached

The one that only caches — and does it without ceremony.

OPEN SOURCEBSD-3-ClauseSELF-HOSTLOCAL-FIRST

Memcached predates Redis and does one thing: a distributed in-memory key-value cache. No persistence, no data structures, no pub/sub, no clustering logic. BSD-3-Clause, and stable for so long that it is genuinely boring, which for infrastructure is a compliment. Listed because a great many Redis deployments are caching a string against a key and nothing more — and for that job Memcached uses less memory, has fewer failure modes, and gives you nothing to misconfigure. Ask what you are actually storing before you assume you need Redis.

Side by side

10 points of comparison, every one read from a verified field. Green marks the side that wins a row outright. A dash means we do not hold that fact — never that it is zero.

 ValkeyMemcached
Sovereignty ScoreOur transparent 0–100 composite for data ownership and exit cost.9695
Open sourceYesYes
Self-hostableYesYes
Local-first dataYesYes
LicenseBSD-3-ClauseBSD-3-Clause
PricingFree and open source. Managed offerings from AWS, Google and others.Free and open source.
RAM to run it wellThe figure that actually matters, not the vendor's minimum.Your working set + 30%Exactly the cache size you allocate
Realistic running costWhat the box costs each month if you run it yourself.$12–30/mo depending on dataset size, against managed Redis pricing that climbs steeply with memory$6–18/mo depending on cache size
Setup timeHonest first-install estimate, not the marketing quickstart.30 minutes15 minutes
Ongoing maintenanceThe part nobody budgets for.Low. Watch memory and set an eviction policy.Very low. It is one of the most boring pieces of infrastructure in existence, which is a compliment.
The verdict

Valkey is Macrostack's recommended Redis alternative, so it's our pick here.

Weighing both against staying on Redis? Is Redis free? What it actually costs →

Valkey

Strengths

  • +Drop-in for Redis — same protocol, same clients, hostname change
  • +BSD-3-Clause under Linux Foundation governance; no vendor can relicense it
  • +Backed by AWS, Google and Oracle with real engineering behind it
  • +Faster than Redis on several published benchmarks after multi-threading work

Trade-offs

  • −Does not include Redis Ltd's proprietary modules — no RedisJSON or RediSearch
  • −Younger brand, so some managed providers still list only Redis
  • −Documentation still catching up with Redis's two decades
  • −Divergence from upstream Redis will grow over time

Memcached

Strengths

  • +BSD-3-Clause and completely uncontroversial for two decades
  • +Lower memory overhead than Redis for simple key-value caching
  • +Very few moving parts, so very few ways to break it
  • +Supported by every major managed cloud

Trade-offs

  • −Caching only — no persistence, no data structures, no pub/sub
  • −No replication or failover built in
  • −Cannot serve as a queue, session store or message bus
  • −Wrong tool the moment you need more than a cache

Which one fits you

The trade-offs above, turned into a decision. Find the line that describes your team.

Choose Valkey

if a lower exit cost matters more to you than any single feature, and drop-in for Redis — same protocol, same clients, hostname change.

Choose Memcached

if bSD-3-Clause and completely uncontroversial for two decades.

Neither, yet

if both carry a real cost you should weigh first — does not include Redis Ltd's proprietary modules — no RedisJSON or RediSearch, and caching only — no persistence, no data structures, no pub/sub. If either of those is a dealbreaker for your team, the shortlist is wrong rather than the choice.

What it takes to run these yourself

Real requirements and honest running costs, not the vendor quickstart.

Valkey vs Memcached — common questions

Is Valkey a better fit than Memcached for in-memory data stores & caching?

It depends on what you are optimising for, and the honest split is this: Valkey scores 96 to Memcached's 95 on data ownership and exit cost, so it is the safer choice if you care about being able to leave. Memcached earns its place on a different axis — bSD-3-Clause and completely uncontroversial for two decades. Neither is a wrong answer for every team; the table above is the actual comparison.

What happens if we want to switch later?

Valkey keeps its data local or in open formats, so leaving is an export rather than a negotiation. Memcached is still self-hostable, so the files stay on your server either way — but it is not local-first by design, so check what its export produces before you rely on it.

Can I self-host Valkey or Memcached?

Both can be self-hosted. The difference is what it costs you in time rather than whether it is possible — see the setup and maintenance rows above.

Are Valkey and Memcached both alternatives to Redis?

Yes — both appear in our Redis comparison, which is why they are worth putting side by side. People usually arrive here already having decided to move off Redis and now choosing between the two replacements, which is a narrower and much easier question.

See all 5 Redis alternatives →

Related alternative guides

Facts verified 2026-08-05. Licenses and pricing change — spotted something out of date? That's a correction we want.

The Macrostack brief

New swaps, worth your inbox.

A short, occasional email when we add a high-intent alternative or ship a new head-to-head. No spam, no selling your address — unsubscribe in one click.