+ [refac] return empty array if the key list is empty.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent 95ec5bc55f
commit 8254d103e1
+2
View File
@@ -286,6 +286,8 @@ class zredis
$keys = [];
$code = str_replace(['`', $this->config->db->prefix], '', $table);
if(!$keyList) $keyList = $this->redis->smembers("set:{$code}List");
if(!$keyList) return [];
foreach($keyList as $key) $keys[] = "raw:{$code}:{$key}";
$objects = $this->redis->mget($keys);