缓存驱动统一增加handler方法用于获取操作对象的句柄(某些缓存类型可能为null)

This commit is contained in:
thinkphp
2016-09-29 18:01:22 +08:00
parent f98415ad45
commit 13ed82e5dd
6 changed files with 12 additions and 16 deletions

View File

@@ -22,7 +22,6 @@ use think\cache\Driver;
*/
class Redis extends Driver
{
protected $handler = null;
protected $options = [
'host' => '127.0.0.1',
'port' => 6379,
@@ -174,14 +173,4 @@ class Redis extends Driver
return $this->handler->flushDB();
}
/**
* 返回句柄对象,可执行其它高级方法
*
* @access public
* @return object
*/
public function handler()
{
return $this->handler;
}
}