Skip to content

Commit f8e2f32

Browse files
sasulef3l1x
authored andcommitted
Hotfix: Wrong number of parameters for del command.
`$this->journal->clean(...)` can produce empty array which causes an error when calling Redis del command.
1 parent a19d7d0 commit f8e2f32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Caching/RedisStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function clean(array $conditions): void
199199
// cleaning using journal
200200
if ($this->journal !== null) {
201201
$keys = $this->journal->clean($conditions);
202-
if ($keys !== null) {
202+
if ($keys !== null && $keys !== []) {
203203
$this->client->del($keys);
204204
}
205205
}

0 commit comments

Comments
 (0)