mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Cache类store方法参数允许为空 表示获取当前缓存驱动句柄
This commit is contained in:
@@ -81,9 +81,9 @@ class Cache
|
|||||||
* @param string $name 缓存标识
|
* @param string $name 缓存标识
|
||||||
* @return Driver
|
* @return Driver
|
||||||
*/
|
*/
|
||||||
public static function store($name)
|
public static function store($name = '')
|
||||||
{
|
{
|
||||||
if ('complex' == Config::get('cache.type')) {
|
if ('' !== $name && 'complex' == Config::get('cache.type')) {
|
||||||
self::connect(Config::get('cache.' . $name), strtolower($name));
|
self::connect(Config::get('cache.' . $name), strtolower($name));
|
||||||
}
|
}
|
||||||
return self::$handler;
|
return self::$handler;
|
||||||
|
|||||||
Reference in New Issue
Block a user