摘要:
其一,操作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 阅读全文