Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

memcached

> 编程语言
Open source

memcached development tree

14.2K stars0 likes1 views
WebsiteGitHub

About

memcached development tree

Memcached

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!

Dependencies

  • libevent - https://www.monkey.org/~provos/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).

Building from tarball

If you downloaded this from the tarball, compilation is the standard process:

./configure
make
make test # optional
make install

If you want TLS support, install OpenSSL's development packages and change the configure line:

./configure --enable-tls

If you want to enable the memcached proxy:

./configure --enable-proxy

Building from git

To 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

bash
sudo apt-get install autotools-dev automake libevent-dev

After that you can build memcached binary using automake

bash
cd memcached
./autogen.sh
./configure
make
make test

It should create the binary in the same folder, which you can run

./memcached

You can telnet into that memcached to ensure it is up and running

telnet 127.0.0.1 11211
stats

IF BUILDING PROXY, AN EXTRA STEP IS NECESSARY:

The proxy has some additional vendor dependency code that we keep out of the tree.

bash
cd memcached
cd vendor
./fetch.sh
cd ..
./autogen.sh
./configure --enable-proxy
make
make test

Environment

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 https://build.memcached.org/ 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.

Website

  • https://www.memcached.org

Contributing

See https://github.com/memcached/memcached/wiki/DevelopmentRepos

Issues· 110 open

View all issuesOpen on GitHub
  • #1320

    build failure on macOS when proxy is enabled

    Updated Sep 24, 2026
  • #1313

    Build failure on macOS 27 due to process sandbox deprecation

    Updated Sep 23, 2026
  • #1312

    proxy: `delete <key> noreply` rejected as malformed and silently dropped; error-path replies sent for noreply commands (1.6.45)

    Updated Aug 24, 2026
  • #1308

    [Security] Proxy `rctx:request_new()` placeholder request can trigger `raw_line()` length underflow, causing heap OOB read and server crash

    Updated Aug 1, 2026
  • #1306

    Remote Denial-of-Service via assert(1 == 0) in Chunked Item Processing

    Updated Jul 30, 2026
  • #1305

    extstore: item lock held during sleep backoff in compaction

    Updated Jul 25, 2026
  • #1304

    Proxy: extstore hits leak references with internal lookups

    Updated Jul 10, 2026
  • #1301

    mg: E (new CAS) flag ignored when modifying an existing item

    Updated Jul 8, 2026
  • #1299

    Document Kubernetes installation with the HelmForge Helm chart

    Updated Jul 2, 2026
  • #1271

    proxy: how to bind backend connections to speficic IP address ?

    help wantedUpdated Mar 30, 2026

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言