Skip to content

Commit d2f70f4

Browse files
committed
避免predis del 空数组报错
1 parent c1ba0d5 commit d2f70f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/driver/Redis.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ public function clear(): bool
201201
*/
202202
public function clearTag($keys): void
203203
{
204+
if (empty($keys)) {
205+
return;
206+
}
204207
// 指定标签清除
205208
$this->handler->del($keys);
206209
}

0 commit comments

Comments
 (0)