memcached development tree
Memcached is a high performance multithreaded event-based key/value cache store intended to be used in a distributed system.
See: https://memcached.org/about
A fun story explaining usage: https://memcached.org/tutorial
If you're having trouble, try the wiki: https://memcached.org/wiki
If you're trying to troubleshoot odd behavior or timeouts, see: https://memcached.org/timeouts
https://memcached.org/ is a good resource in general. Please use the mailing list to ask questions, github issues aren't seen by everyone!
If you downloaded this from the tarball, compilation is the standard process:
./configure
make
make test # optional
make installIf you want TLS support, install OpenSSL's development packages and change the configure line:
./configure --enable-tlsIf you want to enable the memcached proxy:
./configure --enable-proxyTo build memcached in your machine from local repo you will have to install autotools, automake and libevent. In a debian based system that will look like this
sudo apt-get install autotools-dev automake libevent-devAfter that you can build memcached binary using automake
cd memcached
./autogen.sh
./configure
make
make testIt should create the binary in the same folder, which you can run
./memcachedYou can telnet into that memcached to ensure it is up and running
telnet 127.0.0.1 11211
statsIF BUILDING PROXY, AN EXTRA STEP IS NECESSARY:
The proxy has some additional vendor dependency code that we keep out of the tree.
cd memcached
cd vendor
./fetch.sh
cd ..
./autogen.sh
./configure --enable-proxy
make
make testBe 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)
See https://build.memcached.org/ for multi-platform regression testing status.
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.
See https://github.com/memcached/memcached/wiki/DevelopmentRepos
build failure on macOS when proxy is enabled
Build failure on macOS 27 due to process sandbox deprecation
proxy: `delete <key> noreply` rejected as malformed and silently dropped; error-path replies sent for noreply commands (1.6.45)
[Security] Proxy `rctx:request_new()` placeholder request can trigger `raw_line()` length underflow, causing heap OOB read and server crash
Remote Denial-of-Service via assert(1 == 0) in Chunked Item Processing
extstore: item lock held during sleep backoff in compaction
Proxy: extstore hits leak references with internal lookups
mg: E (new CAS) flag ignored when modifying an existing item
Document Kubernetes installation with the HelmForge Helm chart
proxy: how to bind backend connections to speficic IP address ?