We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6159d3c commit 3f6496cCopy full SHA for 3f6496c
src/Driver/Redis.php
@@ -50,7 +50,7 @@ protected function clearExpire(): void
50
$keys = RedisClient::connection($this->connection)->keys('rate-limiter-*');
51
foreach ($keys as $key) {
52
if (!str_contains($key, 'rate-limiter-' . date('Y-m-d'))) {
53
- $key = str_replace(config('redis.' . $this->connection . '.prefix'), '', $key);
+ $key = str_replace(config('redis.' . $this->connection . '.prefix', ''), '', $key);
54
RedisClient::connection($this->connection)->del($key);
55
}
56
0 commit comments