项目作者: xuzhi

项目描述 :
实现 memcache 和 mysql 同步的 memcache
高级语言: Shell
项目地址: git://github.com/xuzhi/memcache_mysql.git
创建时间: 2012-11-26T08:05:05Z
项目社区:https://github.com/xuzhi/memcache_mysql

开源协议:BSD 3-Clause "New" or "Revised" License

下载


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:

  1. 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: