项目作者: Kerwong

项目描述 :
Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提供动态数据库驱动网站的速度。Memcached 基于一个存储键/值对的 hashmap。Memcached-1.4.7的代码量还是可以接受的,只有10K行左右。下载地址:http://memcached.org/
高级语言: C
项目地址: git://github.com/Kerwong/memcached.git
创建时间: 2014-11-03T15:22:33Z
项目社区:https://github.com/Kerwong/memcached

开源协议: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: