xcache

浏览:3247 发布日期:2013/05/27 分类:求助交流 关键字: xcache
为什么xcache放不进去数据呢 怎么写都不行
S('all_access_data', $data, array('type'=>'xcache','expire'=>3600*24*365,'length'=>count($data))); //一年时间
S('all_access_data', $data, 3600*24*365) //一年时间

这里是xcache里面set方法
public function set($name, $value,$expire=null) {
N('cache_write',1);
if(is_null($expire)) {
$expire = $this->options['expire'] ;
}
$name = $this->options['prefix'].$name;
if(xcache_set($name, $value, $expire)) {
if($this->options['length']>0) {
// 记录缓存队列
$this->queue($name);
}
return true;
}
return false;
}
当走到xcache_set($name, $value, $expire)就不行了 这个方法在哪设置的呢 怎么都没值
请问该怎么写才行呢
最佳答案
评论( 相关
后面还有条评论,点击查看>>