Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

A change was accidentally introduced where part of the graceful shutdown
code (stop_threads() -> close_conns()) would execute during non-graceful
shutdown (INT/TERM). This could lead to hangs or bugs if using code that
does not support graceful shutdown (proxy).

This does not restore the old method of immediately exiting, and still
frees some memory and returns from main(), but it no longer attempts to
stop all the worker threads.

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
December 1, 2022 16:00
December 1, 2022 22:07
June 7, 2021 23:41
October 5, 2021 12:21
May 23, 2017 22:41
June 15, 2003 23:27
November 1, 2022 22:22
November 20, 2020 12:19
June 16, 2016 17:14
January 12, 2022 23:18
September 17, 2019 02:37
August 25, 2022 20:32
August 28, 2019 14:36
September 28, 2019 00:31
November 1, 2022 22:22
December 31, 2014 23:13
February 24, 2022 22:34
February 24, 2022 22:34
October 17, 2019 13:54
December 31, 2014 23:13
October 5, 2021 12:21
December 31, 2014 23:13
February 15, 2020 12:34
November 1, 2022 22:22
September 17, 2019 02:37
November 1, 2022 22:22


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


A fun story explaining usage:

If you're having trouble, try the wiki:

If you're trying to troubleshoot odd behavior or timeouts, see: is a good resource in general. Please use the mailing list to ask questions, github issues aren't seen by everyone!


  • libevent - (libevent-dev)
  • libseccomp (optional, experimental, linux) - enables process restrictions for better security. Tested only on x86-64 architectures.
  • openssl (optional) - enables TLS support. need relatively up to date version. pkg-config is needed to find openssl dependencies (such as -lz).


Be warned that the -k (mlockall) option to memcached might be dangerous when using a large cache. Just make sure the memcached machines don't swap. memcached does non-blocking network I/O, but not disk. (it should never go to disk, or you've lost the whole point of it)

Build status

See for multi-platform regression testing status.

Bug reports

Feel free to use the issue tracker on github.

If you are reporting a security bug please contact a maintainer privately. We follow responsible disclosure: we handle reports privately, prepare a patch, allow notifications to vendor lists. Then we push a fix release and your bug can be posted publicly with credit in our release notes and commit history.