mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正cache驱动路径
This commit is contained in:
@@ -29,7 +29,7 @@ class Cache
|
|||||||
public static function connect($options = [])
|
public static function connect($options = [])
|
||||||
{
|
{
|
||||||
$type = !empty($options['type']) ? $options['type'] : 'File';
|
$type = !empty($options['type']) ? $options['type'] : 'File';
|
||||||
$class = 'think\\cache\\driver\\' . ucwords($type);
|
$class = '\\think\\cache\\driver\\' . ucwords($type);
|
||||||
self::$handler = new $class($options);
|
self::$handler = new $class($options);
|
||||||
return self::$handler;
|
return self::$handler;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user