mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
缓存驱动统一增加handler方法用于获取操作对象的句柄(某些缓存类型可能为null)
This commit is contained in:
12
library/think/cache/Driver.php
vendored
12
library/think/cache/Driver.php
vendored
@@ -16,6 +16,7 @@ namespace think\cache;
|
||||
*/
|
||||
abstract class Driver
|
||||
{
|
||||
protected $handler = null;
|
||||
protected $options = [];
|
||||
protected $tag;
|
||||
|
||||
@@ -173,4 +174,15 @@ abstract class Driver
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回句柄对象,可执行其它高级方法
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function handler()
|
||||
{
|
||||
return $this->handler;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user