7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

Memcached

Open source

Multithreaded, event-driven in-memory key/value cache used to speed up distributed applications by keeping hot data in RAM.

memcached.org
Memcached homepage screenshot
GitHub stars
14k
Last commit
22 days ago
Repository age
17 years
Licence
BSD-3-Clause
Self-hosted
Yes

About Memcached

Memcached is an in-memory key/value cache store designed for distributed systems. Applications place frequently read data, such as query results or rendered fragments, in memory so they can skip slower backends. It is a long-established building block of web infrastructure and is released as open source under the BSD-3-Clause license.

The server is written in C, uses multiple threads and an event-based design built on libevent, and keeps its interface simple. Optional build features include TLS support through OpenSSL, process restrictions on Linux through libseccomp, and an experimental proxy mode. It can be compiled from a release tarball or from the git repository using the standard autotools workflow.

The project provides documentation on its website, including a tutorial, a wiki and a guide for diagnosing timeouts and odd behavior. Questions are handled through a mailing list rather than GitHub issues. Because it is a cache, operators typically run it on dedicated machines and avoid swapping when large memory is allocated.

Key features

  • In-memory key/value storage for caching
  • Multithreaded, event-based server in C
  • Optional TLS support via OpenSSL
  • Optional libseccomp process restrictions on Linux
  • Experimental proxy mode
  • Builds from tarball or git source

Good fit for

  • →Caching database query results
  • →Sharing session data across web servers
Built with
C
Tags
cache
key-value
in-memory
distributed-systems
infrastructure
performance
self-hosted

Memcached: questions and answers

What is Memcached used for?
Memcached is a multithreaded, event-driven in-memory key/value cache used to speed up distributed applications by keeping hot data in RAM. It is a good fit for caching database query results and sharing session data across web servers.
Is Memcached open source?
Yes. Memcached is open source under the BSD-3-Clause licence. Its source code is on GitHub at memcached/memcached and is written mainly in C.
Is Memcached free?
Yes. Memcached is open source, so the software itself is free to use.
Can I self-host Memcached?
Yes. Memcached can be self-hosted on your own server or infrastructure.
What is Memcached an alternative to?
Memcached is an open-source alternative to Amazon ElastiCache, Google Memorystore and Momento. Other open-source alternatives to Amazon ElastiCache include Valkey, Redis and Dragonfly.
Is Memcached actively maintained?
Yes. The most recent commit to Memcached was on 11 September 2026. The project has 14k stars on GitHub.

Open-source alternatives to Memcached

See all

SaaS alternatives to Memcached

See all