mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Cache类tag方法的返回值
This commit is contained in:
2
library/think/cache/Driver.php
vendored
2
library/think/cache/Driver.php
vendored
@@ -91,7 +91,6 @@ abstract class Driver
|
||||
{
|
||||
if (is_null($keys)) {
|
||||
$this->tag = $name;
|
||||
return $this;
|
||||
} else {
|
||||
$key = 'tag_' . md5($name);
|
||||
if (is_string($keys)) {
|
||||
@@ -100,6 +99,7 @@ abstract class Driver
|
||||
$value = array_unique(array_merge($this->getTagItem($name), $keys));
|
||||
$this->set($key, implode(',', $value));
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user