Skip to content
memcached development tree
C Perl M4 DTrace Shell Makefile Other
Failed to load latest commit information.
devtools some whitespace test fixes. May 28, 2016
doc cache_memlimit command for tuning runtime maxbytes Jun 24, 2016
m4 Backporting AC_PROG_CC_C99 macro for redhat. Feb 20, 2010
scripts Fix typo of pid path May 29, 2016
t bump binary.t Jun 24, 2016
.gitignore add vim swap file to .gitignore and t/whitespace.t's exempt list Dec 31, 2014
.shipit Checking in changes prior to tagging of version 1.2.4. Changelog diff… Dec 6, 2007
AUTHORS autoconf/automake support from evan Jun 14, 2003
BUILD better build instructions Jul 31, 2003
CONTRIBUTING Add links to http://contributing.appspot.com/memcached Mar 20, 2010
COPYING add a duplicate of the LICENSE file so GNU automake doesn't assume it… Aug 6, 2004
ChangeLog fix typos Dec 31, 2014
Doxyfile fix typos Jan 1, 2015
HACKING Add links to http://contributing.appspot.com/memcached Mar 20, 2010
LICENSE change from GPL to BSD. Jun 15, 2003
LICENSE.bipbuffer initial logger code. Jun 16, 2016
Makefile.am initial logger code. Jun 17, 2016
NEWS danga.com -> memcached.org in a few spots. Apr 29, 2014
README.md Use Markdown for README. Jul 29, 2012
assoc.c fix build with musl libc May 28, 2016
assoc.h use item lock instead of global lock when hash expanding. Dec 26, 2014
autogen.sh fix configure.ac warning and use system automake Nov 18, 2015
bipbuffer.c fix solaris compiler warning in bipbuffer.c Jun 20, 2016
bipbuffer.h initial logger code. Jun 17, 2016
cache.c totally destroy test caches Jul 29, 2012
cache.h fix typo of comments in cache.h May 29, 2016
configure.ac Automake improvements Nov 19, 2015
daemon.c Build fixes for ubuntu 8.10/64. Jan 20, 2009
globals.c slab reassignment Dec 19, 2011
hash.c Make hash table algorithm selectable Apr 16, 2014
hash.h Make hash table algorithm selectable Apr 17, 2014
items.c change LRU crawler fprintf to use %u format Jun 24, 2016
items.h finish stats_sizes rewrite Jun 24, 2016
jenkins_hash.c fix typos Jan 1, 2015
jenkins_hash.h Make hash table algorithm selectable Apr 17, 2014
logger.c add -o watcher_logbuf_size=N worker_logbuf_size=N Jun 23, 2016
logger.h logger endpoints for first release Jun 16, 2016
memcached.c cache_memlimit command for tuning runtime maxbytes Jun 24, 2016
memcached.h add -o watcher_logbuf_size=N worker_logbuf_size=N Jun 24, 2016
memcached.spec.in danga.com -> memcached.org in a few spots. Apr 30, 2014
memcached_dtrace.d Define touch command probe for DTrace support Jul 29, 2012
murmur3_hash.c fix typos Jan 1, 2015
murmur3_hash.h Make hash table algorithm selectable Apr 17, 2014
protocol_binary.h fix typos Jan 1, 2015
sasl_defs.c fix enable-sasl-pwdb Sep 18, 2012
sasl_defs.h Specify hostname in sasl_server_new. Jan 27, 2012
sizes.c Created a tool to show us the sizes of various data structures. Mar 10, 2009
slabs.c cache_memlimit command for tuning runtime maxbytes Jun 24, 2016
slabs.h cache_memlimit command for tuning runtime maxbytes Jun 24, 2016
solaris_priv.c Remove compilation errors from gcc on Solaris Aug 22, 2009
stats.c Make hash table algorithm selectable Apr 17, 2014
stats.h stats_prefix_* should not assume that all keys are zero-terminated Jan 3, 2009
testapp.c gatkq: return key in response Dec 31, 2014
thread.c memcached idle connection killer Jun 21, 2016
timedrun.c bug237: Don't compute incorrect argc for timedrun Jan 11, 2012
trace.h Backport binary TOUCH/GAT/GATQ commands Sep 27, 2011
util.c Issue 221: Increment treats leading spaces as 0 Sep 3, 2011
util.h Issue: #83: Refactor: use htonll or ntohll if the os provides them Sep 2, 2009
version.pl Make autoversioning/spec gen work better. Nov 2, 2009
version.sh Generate the memcached.spec along with the version number. Aug 29, 2009

README.md

Memcached

Dependencies

Environment

Linux

If using Linux, you need a kernel with epoll. Sure, libevent will work with normal select, but it sucks.

epoll isn't in Linux 2.4, but there's a backport at:

http://www.xmailserver.org/linux-patches/nio-improve.html

You want the epoll-lt patch (level-triggered).

Mac OS X

If you're using MacOS, you'll want libevent 1.1 or higher to deal with a kqueue bug.

Also, 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)

Website

Contributing

Want to contribute? Up-to-date pointers should be at:

Something went wrong with that request. Please try again.