摘要: 其一,操作memcache服务器,<?php class mem{ private static $conn; public function mem($host='127.0.0.1',$port=11211) { $conn = new Memcache; $conn->pconnect($host, $port); } public function get($key) { return $this->conn->get($key); } public function set($key,$value,$expire=259200) { retur 阅读全文
posted @ 2010-10-04 18:29 MultiThread-PHP 阅读(238) 评论(0) 推荐(0) 编辑