改进Cache类tag方法的返回值

This commit is contained in:
thinkphp
2016-08-17 18:11:19 +08:00
parent 37562f9239
commit 684c04849a

View File

@@ -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;
}
/**