Skip to content

Commit 5d42e53

Browse files
committed
改进Redis缓存驱动
1 parent e5f4c55 commit 5d42e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/think/cache/driver/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function getTagItems(string $tag): array
244244
{
245245
$name = $this->getTagKey($tag);
246246
$key = $this->getCacheKey($name);
247-
return $this->handler()->sMembers($key);
247+
return $this->handler()->sMembers($key) ?: [];
248248
}
249249

250250
public function __call($method, $args)

0 commit comments

Comments
 (0)