tp内核更新至正式版

This commit is contained in:
2016-09-15 15:56:58 +08:00
parent 3a6802216e
commit 903af087ca
14 changed files with 49 additions and 11 deletions

View File

@@ -91,6 +91,23 @@ abstract class Driver
return $this->options['prefix'] . $name;
}
/**
* 读取缓存并删除
* @access public
* @param string $name 缓存变量名
* @return mixed
*/
public function pull($name)
{
$result = $this->get($name, false);
if ($result) {
$this->rm($name);
return $result;
} else {
return null;
}
}
/**
* 缓存标签
* @access public