mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进Cache类的connect方法
This commit is contained in:
@@ -37,7 +37,7 @@ class Cache
|
|||||||
{
|
{
|
||||||
$type = !empty($options['type']) ? $options['type'] : 'File';
|
$type = !empty($options['type']) ? $options['type'] : 'File';
|
||||||
if (false === $name) {
|
if (false === $name) {
|
||||||
$name = $type;
|
$name = md5(serialize($options));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true === $name || !isset(self::$instance[$name])) {
|
if (true === $name || !isset(self::$instance[$name])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user