Memcached VS Redis

Compare Memcached vs Redis and see what are their differences.

Redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps. (by redis)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Memcached Redis
55 317
13,156 64,549
0.9% 1.6%
8.5 9.7
5 days ago 5 days ago
C C
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Memcached

Posts with mentions or reviews of Memcached. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-14.
  • Redis Re-Implemented with SQLite
    15 projects | news.ycombinator.com | 14 Apr 2024
  • How to choose the right type of database
    15 projects | dev.to | 28 Feb 2024
    Memcached: A simple, open-source, distributed memory object caching system primarily used for caching strings. Best suited for lightweight, non-persistent caching needs.
  • Sieve is simpler than LRU
    4 projects | news.ycombinator.com | 3 Jan 2024
    Oh, thank you! I didn't realize that LRU Maintainer Thread was more than an expiration reaper. When it was first being introduced that was its first responsibility as lazy expiration removal by size eviction meant dead entries wasted capacity. It was all work in progress when I had read about it [1] and talked to dormando, so it got fuzzy. The compat code [2, 3] might have also thrown me off if I only looked at the setting and not the usage. Its a neat variant to all of these ideas.

    [1] https://github.com/memcached/memcached/pull/97

  • A Developer's Journal: Simplifying the Twelve-Factor App
    9 projects | dev.to | 3 Dec 2023
    stores session state in a session store like Memcached or Redis.
  • Django Caching 101: Understanding the Basics and Beyond
    3 projects | dev.to | 23 Jul 2023
    Django supports using Memcached as a cache backend. Memcached is a high-performance, distributed memory caching system that can be used to store cached data across multiple servers.
  • Node.js server-side authentication: Tokens vs. JWT
    2 projects | dev.to | 12 Jul 2023
    In server-side authentication, the session state is stored on the server-side, which can be scaled horizontally across multiple servers using tools like Redis or Memcached.
  • Scaling moderate sized websites
    3 projects | dev.to | 31 Jan 2023
    Caching - while it's not possible to cache everything, there's always a large percentage of your website / app that can be cached for an hour or ten minutes or 1 day etc... - all depends on the type of content but the longer you can cache for without negatively effecting content quality - the better. A good caching server example would be redis : https://redis.io/ or https://memcached.org/
  • Why do people curse JS so much, but also say it's better than Python
    8 projects | /r/ProgrammerHumor | 21 Jan 2023
    If you really care about optimising this, you need, as other traders pointed out, a cache. Caches are a way of ensuring that the data you query stays in memory on a separate machine so you don't have the delay to disk & to commit. Things like memcached are created for this exact purpose. If you care about optimisation, look into it and other options. This is not a simple problem. Distributed systems like these are a whole area of work and research, so it won't be as simple as just swapping a DB, but if you care about performance, this is the path you have to go down eventually.
  • Web resource caching: Server-side
    4 projects | dev.to | 7 Dec 2022
    A couple of dedicated server-side resource caching solutions have emerged over the years: Memcached, Varnish, Squid, etc. Other solutions are less focused on web resource caching and more generic, e.g., Redis or Hazelcast.
  • jwz: Mastodon stampede
    2 projects | /r/Mastodon | 28 Nov 2022
    MEMCACHED

Redis

Posts with mentions or reviews of Redis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-08.

What are some alternatives?

When comparing Memcached and Redis you can also consider the following projects:

Redis - 🚀 A robust, performance-focused, and full-featured Redis client for Node.js.

Varnish - The project homepage

LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

RabbitMQ - Open source RabbitMQ: core server and tier 1 (built-in) plugins

Polly - Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.

celery - Distributed Task Queue (development branch)

Riak - Riak is a decentralized datastore from Basho Technologies.

node-cache - A simple in-memory cache for nodejs

cockroach - CockroachDB - the open source, cloud-native distributed SQL database.

Apache HBase - Apache HBase

RedisJSON - RedisJSON - a JSON data type for Redis

ArangoDB - 🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.