memcache

浏览:787 发布日期:2014/04/04 分类:求助交流 关键字: memcache
$cache = Cache::getInstance("memcache");
var_dump($cache);
$cache->set("a",1);
$value = $cache->get("a");
if($value){
var_dump($value);
}else{
echo "wrong";
}

object(CacheMemcache)[6]
protected 'handler' =>
object(Memcache)[7]
public 'connection' => resource(25, memcache connection)
protected 'options' =>
array (size=7)
'host' => string 'tcp://127.0.0.1:11211' (length=21)
'port' => int 11211
'timeout' => boolean false
'persistent' => boolean false
'expire' => string '1800' (length=4)
'prefix' => string '' (length=0)
'length' => int 0

wrong

为什么数据不能存进缓存里面
最佳答案
评论( 相关
后面还有条评论,点击查看>>