项目作者: begend

项目描述 :
参考网上的,给memcache增加注释
高级语言: C
项目地址: git://github.com/begend/my_memcache.git
创建时间: 2017-11-09T15:33:06Z
项目社区:https://github.com/begend/my_memcache

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

关键词:
c libevent memcached

下载


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: