Databases · head to head
Memcached vs Valkey
Memcached
Databases
Distributed memory object caching system
- From
- Free
- Free plan
- Yes

Valkey
Databases
Open-source in-memory data store forked from Redis
- From
- Free
- Free plan
- Yes
The short version
- Both are free.
- Only Memcached lists in-memory key-value cache; only Valkey lists BSD licensed.
- Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
- Where Valkey falls short: younger project, so its track record is short even though the codebase is not.
How do Memcached and Valkey differ?
Memcached and Valkey differ on platforms and year founded (2003 against 2024). Only the attributes on which Memcached and Valkey actually diverge.
Identical on both: starting price (Free), pricing model (Open source, no licence fee; managed cloud billed separately), free tier (Yes), category (Databases).
Which features does each one have?
They share no listed features; 4 appear only for Memcached and 4 only for Valkey. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Memcached
- In-memory key-value cache
- Multithreaded
- Client-side sharding
- Predictable memory use
Only in Valkey
- Redis-compatible
- BSD licensed
- Rich data structures
- Replication and persistence
What is each one used for?
Memcached is most often brought in for caching expensive database query results to cut load; Valkey for migrating from Redis without rewriting application code. The jobs each tool is most often brought in to do.
Memcached
- Caching expensive database query results to cut loadnot Valkey
- Session storage where losing sessions on restart is acceptablenot Valkey
- Fronting an API whose responses are costly and change slowlynot Valkey
Valkey
- Continuing on a permissively licensed in-memory store after the Redis licence changenot Memcached
- Caching and session storage where a foundation-governed project is a procurement requirementnot Memcached
- Migrating from Redis without rewriting application codenot Memcached
Where do Memcached and Valkey fall short?
Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. Valkey's: younger project, so its track record is short even though the codebase is not. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Memcached
- No persistence at all: restart a node and its cache is gone, which every design must assume
- No replication or failover, so losing a node loses that share of the cache
- Only simple key-value, with none of the lists, sorted sets or streams Redis offers
- Values are capped at 1MB by default, which surprises teams caching large documents
Valkey
- Younger project, so its track record is short even though the codebase is not
- Divergence from Redis grows over time, so compatibility is strongest near the fork point and weakens as both evolve
- Ecosystem tooling and documentation still frequently assume Redis, leaving translation work
How much do Memcached and Valkey cost?
Memcached is free to use; Valkey is free to use. Plan by plan below, from each vendor's own pricing page.
Memcached
Free- MemcachedFree
- Full functionality
- Self-hosted
- No usage limits
Valkey
Free- ValkeyFree
- Full functionality
- Self-hosted
- No usage limits
Which should you pick?
Choose Memcached if
- You need in-memory key-value cache.
- You want to start without paying.
- You work on Linux, macOS, Windows, Self-hosted.
- You also want multithreaded.
Choose Valkey if
- You need redis-compatible.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted.
- You also want bsd licensed.
Questions people ask
- Is Memcached or Valkey better?
- It depends on the job. Memcached fits caching expensive database query results to cut load; Valkey fits continuing on a permissively licensed in-memory store after the Redis licence change. Memcached starts at Free and Valkey at Free.
- Which is cheaper, Memcached or Valkey?
- Memcached starts at Free and Valkey at Free.
- Does Memcached or Valkey run on more platforms?
- Memcached runs on Linux, macOS, Windows, Self-hosted. Valkey runs on Linux, macOS, Self-hosted.
- Can I use Memcached for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Memcached best used for?
- Memcached is most often used for caching expensive database query results to cut load, session storage where losing sessions on restart is acceptable, fronting an api whose responses are costly and change slowly. Of those, caching expensive database query results to cut load and session storage where losing sessions on restart is acceptable are not what Valkey is typically brought in for.
- What can Memcached do that Valkey cannot?
- Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. Valkey covers Redis-compatible, BSD licensed, Rich data structures, Replication and persistence.
Answered from the vendors’ own pages
Memcached: Is Memcached free?
Yes, open source with no licence fee.
Valkey: Is Valkey free?
Yes, BSD-licensed open source under the Linux Foundation.
Memcached: Memcached or Redis?
Memcached is a pure cache: simpler, multithreaded and very predictable. Redis adds persistence, replication and rich data structures, which is why it is the default choice unless you specifically want a cache and nothing more.
Valkey: Why does Valkey exist?
Redis changed its licence away from BSD in 2024. Valkey is the community fork continuing under permissive terms, backed by AWS, Google Cloud and Oracle among others.
Memcached: Does Memcached persist data?
No. Everything is in memory and lost on restart, by design.
Valkey: Can I switch from Redis to Valkey?
At the fork point it is drop-in compatible with existing clients and data. The further both projects move from that point, the more you should verify the specific features you use.
Related pages
Other head to heads
- Memcached vs Readyset
- Memcached vs Amazon ElastiCache
- Memcached vs Redis
- Memcached vs Dragonfly
- Memcached vs PostgreSQL
- Memcached vs DuckDB
- Memcached vs Apache Pulsar
- Memcached vs NATS
- Memcached vs MySQL
- Memcached vs VictoriaMetrics
- Memcached vs Dgraph
- Memcached vs Google Cloud SQL
- Memcached vs MotherDuck
- Memcached vs Presto
- Memcached vs TIBCO Enterprise Message Service
- Memcached vs VerneMQ
- Memcached vs DynamoDB
- Memcached vs etcd
- Memcached vs Aiven
- Memcached vs Redpanda
- Memcached vs MariaDB
- Memcached vs Timeplus
- Memcached vs SAP HANA
- Memcached vs Estuary
- Memcached vs Firebase Realtime Database
- Memcached vs Immuta
- Memcached vs InfluxDB
- Memcached vs Knack
- Valkey vs Readyset
- Valkey vs Amazon ElastiCache
- Valkey vs Redis
- Valkey vs Dragonfly
- Valkey vs PostgreSQL
- Valkey vs DuckDB
- Valkey vs Apache Pulsar
- Valkey vs NATS
- Valkey vs MySQL
- Valkey vs VictoriaMetrics
- Valkey vs Dgraph
- Valkey vs Google Cloud SQL
- Valkey vs MotherDuck
- Valkey vs Presto
- Valkey vs TIBCO Enterprise Message Service
- Valkey vs VerneMQ
- Valkey vs DynamoDB
- Valkey vs etcd
- Valkey vs Aiven
- Valkey vs Redpanda
- Valkey vs MariaDB
- Valkey vs Timeplus
- Valkey vs SAP HANA
- Valkey vs Estuary
- Valkey vs Firebase Realtime Database
- Valkey vs Immuta
- Valkey vs InfluxDB
- Valkey vs Knack
