Skip to content

Menu

Redis
VS
Memcached

Redis vs Memcached

Short answer

If all you need is a fast cache for query results or pages, Memcached does that job with very little to configure and a stable BSD licence. Redis is the better fit as soon as you want richer data types, persistence, queues or vector search. Check the licence terms that apply to the Redis version you run, and look at Valkey if you want a BSD-licensed alternative with the Redis protocol.

Redis and Memcached both keep data in memory and answer in key-value style, which is why they are compared so often. In practice they solve different-sized problems. Memcached describes itself as a distributed memory object caching system: a multithreaded key-value cache for things like query results, API responses and rendered fragments. Its README is clear that it is a cache, not a database, and that it should never go to disk. The latest version is 1.6.45, with release notes dated 9 July 2026, and the repository is BSD-3-Clause.

Redis calls itself a data structure server. Beyond strings it supports hashes, lists, sets, sorted sets, streams, geospatial indexes, JSON, time series, probabilistic types such as Bloom filters and HyperLogLog, and vector sets for similarity search. It can also write data to disk with RDB snapshots, an append-only file, or both, and since 8.10 a BACKUP command family produces online backups. The latest stable release is 8.10.3.

Redis licensing has changed twice. Versions up to 7.2 were BSD-3-Clause. Redis Community Edition 7.4 to 7.8 moved to a choice of RSALv2 or SSPLv1. From Redis 8, Redis Open Source lets you choose RSALv2, SSPLv1 or AGPLv3. Valkey, a BSD-3-Clause fork made just before the first licence change, is run under the Linux Foundation's LF Projects.

Redis also sells a managed service. As of November 2026 Redis Cloud has a free 30 MB database, Essentials from $5 a month and Pro from $0.014 an hour with a $200 monthly minimum.

How they compare

AspectRedisMemcached
PurposeData structure server used as cache, queue, store and more.Pure in-memory key-value cache.
Data typesStrings, hashes, lists, sets, sorted sets, streams, JSON, time series, vector sets.Key-value items only.
PersistenceRDB snapshots, AOF, both or none.None; data lives in RAM only.
LicenceRSALv2, SSPLv1 or AGPLv3 from Redis 8; 7.2 and earlier BSD-3.BSD-3-Clause.
Latest release8.10.3 stable; 8.12 in release candidates.1.6.45 (July 2026).
Managed serviceRedis Cloud: Free 30 MB, Essentials from $5 a month, Pro from $0.014 an hour.No official managed service listed on memcached.org.
Open forkValkey (BSD-3, Linux Foundation) if you want the old licence terms.Not applicable.

Choose Redis if…

  • You need data structures beyond plain keys and values
  • You want the option to persist data to disk
  • You want streams, queues or vector search in the same server
  • You want an official managed cloud

Choose Memcached if…

  • You only need a simple cache in front of a database
  • You want a permissive BSD licence with no history of changes
  • You prefer a smaller tool with fewer moving parts
  • Losing the cache on restart is acceptable

Researched November 2026 from each product's official documentation and pricing pages. Prices and features change often, so check the vendors' sites before you decide.

Sources

More comparisons

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…