Software Alternatives & Reviews

memcached VS Redis

Compare memcached VS Redis and see what are their differences

memcached logo memcached

High-performance, distributed memory object caching system

Redis logo Redis

Redis is an open source in-memory data structure project implementing a distributed, in-memory key-value database with optional durability.
  • memcached Landing page
    Landing page //
    2023-07-23
  • Redis Landing page
    Landing page //
    2022-10-19

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

memcached

Categories
  • Key-Value Database
  • Databases
  • NoSQL Databases
  • Graph Databases
Website memcached.org
Details $

Redis

Categories
  • Key-Value Database
  • NoSQL Databases
  • Databases
  • Graph Databases
Website redis.io
Details $

memcached videos

Course Preview: Using Memcached and Varnish to Speed Up Your Linux Web App

Redis videos

What is Redis? | Why and When to use Redis? | Tech Primers

More videos:

  • Review - Improve your Redis developer experience with RedisInsight, Redis Labs
  • Review - Redis Labs "Why NoSQL is a Safe Bet"
  • Review - Redis Enterprise Overview with Yiftach Shoolman - Redis Labs
  • Review - Redis system design | Distributed cache System design
  • Review - What is Redis and What Does It Do?
  • Review - Redis Sorted Sets Explained

Category Popularity

0-100% (relative to memcached and Redis)
Databases
19 19%
81% 81
NoSQL Databases
19 19%
81% 81
Key-Value Database
27 27%
73% 73
Graph Databases
17 17%
83% 83

User comments

Share your experience with using memcached and Redis. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare memcached and Redis

memcached Reviews

Redis vs. KeyDB vs. Dragonfly vs. Skytable | Hacker News
Quick ask: I don’t see “some” of the other offering out there like MemCached… what was the criteria used to select these? I don’t see any source of how the test where run, specs of the systems, how the DB where set up, etc. Would be very valuable to have in order to attempt to re-validate these test on our own platform. I also came back and saw some of your updates...
Memcached vs Redis - More Different Than You Would Expect
So knowing how the difference between Redis and memcached in-memory usage, lets see what this means. Memcached slabs once assigned never change their size. This means it is possible to poison your memcached cluster and really waste memory. If you load your empty memcached cluster with lots of 1 MB items, then all of the slabs will be allocated to that size. Adding a 80 KB...
Redis vs. Memcached: In-Memory Data Storage Systems
Memcached itself does not support distributed mode. You can only achieve the distributed storage of Memcached on the client side through distributed algorithms such as Consistent Hash. The figure below demonstrates the distributed storage implementation schema of Memcached. Before the client side sends data to the Memcached cluster, it first calculates the target node of the...
Source: medium.com
Why Redis beats Memcached for caching
Both Memcached and Redis are mature and hugely popular open source projects. Memcached was originally developed by Brad Fitzpatrick in 2003 for the LiveJournal website. Since then, Memcached has been rewritten in C (the original implementation was in Perl) and put in the public domain, where it has become a cornerstone of modern Web applications. Current development of...

Redis Reviews

Are Free, Open-Source Message Queues Right For You?
A notable challenge with Redis Streams is that it doesn't natively support distributed, horizontal scaling. Also, while Redis is famous for its speed and simplicity, managing and scaling a Redis installation may be complex for some users, particularly for persistent data workloads.
Source: blog.iron.io
Redis vs. KeyDB vs. Dragonfly vs. Skytable | Hacker News
1. Redis: I'll start with Redis which I'd like to call the "original" key/value store (after memcached) because it is the oldest and most widely used of all. Being a long-time follower of Redis, I do know it's single-threaded (and uses io-threads since 6.0) and hence it achieves lesser throughput than the other stores listed above which are multi-threaded, at least to some...
Memcached vs Redis - More Different Than You Would Expect
Remember when I wrote about how Redis was using malloc to assign memory? I lied. While Redis did use malloc at some point, these days Redis actually uses jemalloc. The reason for this is that jemalloc, while having lower peak performance has lower memory fragmentation helping to solve the framented memory issues that Redis experiences.
Top 15 Kafka Alternatives Popular In 2021
Redis is a known, open-source, in-memory data structure store that offers different data structures like lists, strings, hashes, sets, bitmaps, streams, geospatial indexes, etc. It is best utilized as a cache, memory broker, and cache. It has optional durability and inbuilt replication potential. It offers a great deal of availability through Redis Sentinel and Redis Cluster.
Comparing the new Redis6 multithreaded I/O to Elasticache & KeyDB
So there are 3 offerings by 3 companies, all compatible with eachother and based off open source Redis: Elasticache is offered as an optimized service offering of Redis; RedisLabs and Redis providing a core product and monetized offering, and KeyDB which remains a fast cutting edge (open source) superset of Redis. This blog looks specifically at performance, however there is...
Source: docs.keydb.dev

Social recommendations and mentions

Based on our record, Redis should be more popular than memcached. It has been mentiond 183 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

memcached mentions (28)

  • How to choose the right type of database
    Memcached: A simple, open-source, distributed memory object caching system primarily used for caching strings. Best suited for lightweight, non-persistent caching needs. - Source: dev.to / about 2 months ago
  • A Developer's Journal: Simplifying the Twelve-Factor App
    Stores session state in a session store like Memcached or Redis. - Source: dev.to / 5 months ago
  • Django Caching 101: Understanding the Basics and Beyond
    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. - Source: dev.to / 9 months ago
  • Node.js server-side authentication: Tokens vs. JWT
    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. - Source: dev.to / 9 months ago
  • How Instagram handles data?
    The main components are sharding and caching. The storage is done with MySQL. The cache is done by memcached. Source: 12 months ago
View more

Redis mentions (183)

  • Redis is not "open core" (2021)
    The page 404s for me currently and it does not seem to be archived by the wayback machine either: https://web.archive.org/web/20240000000000*/https://redis.io/news/121. - Source: Hacker News / 9 days ago
  • Software Engineering Workflow
    Redis - real time data storage with different data structures in a cache. - Source: dev.to / 11 days ago
  • Redis License Changed
    Redis.io no longer mentions open source. They have still not changed meta description on their page. It still says it is open source ^^ view-source:https://redis.io/. - Source: Hacker News / 30 days ago
  • Tutorial: Install Redis in Distro Linux: Pop!_OS
    Follow the steps below to install Redis:. - Source: dev.to / about 1 month ago
  • How to choose the right type of database
    Redis: An open-source, in-memory data structure store supporting various data types. It offers persistence, replication, and clustering, making it ideal for more complex caching requirements and session storage. - Source: dev.to / about 2 months ago
View more

What are some alternatives?

When comparing memcached and Redis, you can also consider the following products

MongoDB - MongoDB (from "humongous") is a scalable, high-performance NoSQL database.

Aerospike - Aerospike is a high-performing NoSQL database supporting high transaction volumes with low latency.

ArangoDB - A distributed open-source database with a flexible data model for documents, graphs, and key-values.

PostgreSQL - PostgreSQL is a powerful, open source object-relational database system.

Apache Cassandra - The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance.

Apache Ignite - high-performance, integrated and distributed in-memory platform for computing and transacting on...