Skip to content

Commit

Permalink
fix predis clear() when using redis 7.4 (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagesucks authored Dec 13, 2024
1 parent f955296 commit 7717764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/RedisMetricsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public function clear()

do {
[$cursor, $keys] = $this->connection()->scan(
$cursor, ['match' => config('horizon.prefix').$pattern]
$cursor ?? 0, ['match' => config('horizon.prefix').$pattern]
);

foreach ($keys ?? [] as $key) {
Expand Down

0 comments on commit 7717764

Please sign in to comment.