# Memcached

> A high performance multithreaded event-based key/value cache store intended to be used in a distributed system.

Source: https://talira.ai/catalog/memcached-qjqvpryd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Database
- Categories: [databases / in memory](https://talira.ai/categories/databases/in-memory), [databases / key value](https://talira.ai/categories/databases/key-value)
- Platforms: linux, docker
- Licence: BSD-3-Clause
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Danga Interactive

Memcached is an in-memory key/value cache: a multithreaded, event-based server (on libevent) that applications use to keep rendered pages, query results and other computed values close at hand. Clients spread keys across several servers themselves; the servers don't talk to each other. It evicts the least recently used items when memory is full, and can be built with TLS support.

## Links

- Website: https://memcached.org
- GitHub: https://github.com/memcached/memcached
- Docs: https://memcached.org/wiki

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/memcached>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/memcached>[^2]

## Problems it solves

- cache rendered pages and search results in memory shared by several web servers
- my app is content heavy and the database is doing the same work for every request
- a simple shared cache that evicts old entries on its own when memory is full
- a cache server for several app processes that's fine to lose: nothing in it needs to survive a restart

## Features

- multithreaded, event-based server
- key/value cache in memory
- LRU eviction
- optional TLS

## Trust

Overall: 0.51 out of 1.
Signals: maintenance 0.45, adoption 0.83, momentum 0.55, community 0.97, backing 0.20, extensibility 0.00.

- last commit 2 months ago
- 14.3k GitHub stars
- 268 contributors
- created by Danga Interactive

## Alternatives

- [Dragonfly](https://talira.ai/catalog/dragonfly-anqs23rc.md): The world's most efficient in-memory data store
- [Redis](https://talira.ai/catalog/redis-v917j45s.md): The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine
- [Valkey](https://talira.ai/catalog/valkey-21xnmrxe.md): An open source (BSD) high-performance key/value datastore
- [Solid Cache](https://talira.ai/catalog/solid-cache-ptactzqr.md): A database-backed ActiveSupport::Cache::Store
- [Hazelcast](https://talira.ai/catalog/hazelcast-gtynyx0z.md): A real-time data platform: a distributed in-memory data store with stream processing
- [Amazon ElastiCache](https://talira.ai/catalog/amazon-elasticache-q97xc503.md): Fully managed, Valkey-, Memcached-, and Redis OSS-compatible caching service

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
