Skip to content

Commit 3f6496c

Browse files
committed
Fix
1 parent 6159d3c commit 3f6496c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Driver/Redis.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function clearExpire(): void
5050
$keys = RedisClient::connection($this->connection)->keys('rate-limiter-*');
5151
foreach ($keys as $key) {
5252
if (!str_contains($key, 'rate-limiter-' . date('Y-m-d'))) {
53-
$key = str_replace(config('redis.' . $this->connection . '.prefix'), '', $key);
53+
$key = str_replace(config('redis.' . $this->connection . '.prefix', ''), '', $key);
5454
RedisClient::connection($this->connection)->del($key);
5555
}
5656
}

0 commit comments

Comments
 (0)