mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12: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)) {
|
if (is_null($keys)) {
|
||||||
$this->tag = $name;
|
$this->tag = $name;
|
||||||
return $this;
|
|
||||||
} else {
|
} else {
|
||||||
$key = 'tag_' . md5($name);
|
$key = 'tag_' . md5($name);
|
||||||
if (is_string($keys)) {
|
if (is_string($keys)) {
|
||||||
@@ -100,6 +99,7 @@ abstract class Driver
|
|||||||
$value = array_unique(array_merge($this->getTagItem($name), $keys));
|
$value = array_unique(array_merge($this->getTagItem($name), $keys));
|
||||||
$this->set($key, implode(',', $value));
|
$this->set($key, implode(',', $value));
|
||||||
}
|
}
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user