← All comparisons Caching

Redis vs Memcached

A data structure server with a licensing saga, versus a cache that never tried to be more.

Redis is a data structure server: strings, hashes, lists, sets, sorted sets, streams, pub/sub, Lua scripting, optional persistence, and, since Redis 8, JSON, query, and time series in the core. Memcached is a deliberately minimal multithreaded key-value cache, and it is still actively maintained. The technical comparison has been stable for a decade. What changed is licensing: Redis left its BSD license in 2024, the community forked it as Valkey, and Redis came back with an AGPL option in 2025. That story now belongs in the decision.

At a glance

RedisMemcached
Data modelStrings, hashes, lists, sets, sorted sets, streams, JSONKey-value only
LicenseTri-license since Redis 8 (May 2025): AGPLv3, RSALv2, or SSPLv1BSD 3-clause
Open-source forkValkey (Linux Foundation, BSD, backed by AWS and Google)Not applicable
ThreadingMostly single-threaded command core with I/O threadsMultithreaded, scales with cores
PersistenceOptional (RDB snapshots, AOF log)None; extstore extends memory to flash, not durability
Replication and clusterBuilt inNot built in; clients shard
ExtrasPub/sub, Lua, transactions, streams, vector setsA built-in proxy, little else by design
Managed node exampleElastiCache cache.t4g.micro: about $0.016/hr on the Redis OSS engine, $0.0128/hr on ValkeyAbout $0.016/hr, same node
Cheapest managed entryRedis Cloud: free 30 MB tier, paid from $5/moA small ElastiCache or Memorystore node
MaintenanceVery active (Redis 8.x plus Valkey releases)Active and quiet: 1.6.41 shipped March 2026

Pricing

Both are free to self-host, so pricing really means managed services. On AWS ElastiCache, the same cache.t4g.micro node runs about $0.016 per hour, roughly $12 a month, on the Redis OSS or Memcached engines, and about $0.0128 per hour, roughly $9 a month, on Valkey, because AWS prices Valkey nodes about 20 percent below the other engines (us-east-1, on-demand, as of August 2026). Engine choice barely moves the bill. Node size, replicas, and data transfer are what actually cost money.

Redis the company sells Redis Cloud, with a free 30 MB tier and Essentials plans starting at $5 a month for 250 MB, which is the cheapest hosted Redis with zero ops work that I know of. Memcached has no company behind it, so managed Memcached means a cloud provider engine such as ElastiCache or Google Cloud Memorystore.

The license question affects hosting providers more than it affects most application teams. The RSALv2 and SSPLv1 terms restrict offering Redis itself as a competing managed service, which is why the big clouds rallied around Valkey. If your company has rules about AGPL or source-available software, that is a question for your legal review, not for a caching benchmark.

When to pick Redis

Pick Redis, or Valkey, when you want more than a flat cache: rate limiting with sorted sets, job queues with lists or streams, pub/sub, session stores that survive a restart, distributed locks, leaderboards. These patterns are one command in Redis and a project of their own without it. Since Redis 8 folded the former Stack modules into the core distribution, JSON documents, query and search, and time series come standard too.

The fork question is separate from this page's question. If you want the pre-2024 open-source lineage, drop-in compatibility, and cloud provider backing, Valkey is the continuation, and on ElastiCache it is also the cheaper engine. If you want the company's engine under an OSI-approved license, Redis 8 under AGPLv3 restored that path. Either way you are choosing Redis-shaped software, and the commands you learn work on both.

When to pick Memcached

Pick Memcached when the job is a pure ephemeral cache in front of a database and you want the fewest moving parts possible: no persistence to configure, no replication to reason about, no data types to misuse. Its multithreaded design is a real advantage on big nodes, since one instance can use every core for a flat key-value workload while stock Redis concentrates command execution on far fewer threads.

It is also the license nobody has to think about. Memcached stayed BSD 3-clause through the entire Redis licensing drama, and it keeps shipping: version 1.6.41 arrived in March 2026, and the extstore feature lets a node overflow warm items to flash cheaply. Calling Memcached legacy, as an earlier version of this page did, undersells software that still backs some of the largest cache fleets in the world.

What most comparisons miss

The licensing timeline is the part most write-ups skip. In March 2024, Redis moved from BSD to a dual RSALv2 and SSPLv1 license starting with Redis 7.4. Within weeks, AWS, Google, and other maintainers forked Redis 7.2.4 as Valkey under the Linux Foundation, keeping the BSD license. Then in May 2025, after original author Salvatore Sanfilippo returned to the company, Redis 8 added AGPLv3 as a third option, making Redis available under an OSI-approved license again. So the practical menu in 2026 is Redis under AGPL or commercial terms, Valkey under BSD, or Memcached under BSD.

The other miss is framing. The interesting choice today is rarely Redis versus Memcached. It is Redis versus Valkey, with Memcached as the deliberately boring third option. The managed platforms reflect that: ElastiCache now leads with Valkey and prices it below the Redis OSS engine it maintains for compatibility. A comparison that ignores Valkey is answering a 2014 question with 2014 information.

My verdict

For new work I default to Redis-shaped software, because sooner or later every backend wants a queue, a lock, or a counter, and having them one command away changes what you build. On AWS I would reach for Valkey first: same commands, BSD license, lower price. I keep Memcached in the toolbox for what it was always best at, a big flat multithreaded cache with nothing to configure and no license conversation to have. What I no longer say is that Memcached is legacy. It is finished software, which is a different thing.

Further reading