var_dump($cache);
$cache->set("a",1);
$value = $cache->get("a");
if($value){
var_dump($value);
}else{
echo "wrong";
}
ob
protected 'handler' =>
ob
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
为什么数据不能存进缓存里面
最佳答案