2011年5月20日

一个简单的PHP+memcache缓存类

摘要: class cache_memcache { private $memcache = null; public function __construct() { $this->memcache = new Memcache; $this->memcache->connect(MEMCACHE_HOST, MEMCACHE_PORT, MEMCACHE_TIMEOUT); } public function memcache() { $this->__construct(); } public function get($name) { $value = $this-&g 阅读全文

posted @ 2011-05-20 13:07 dawnruby 阅读(201) 评论(0) 推荐(0)

导航