We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a4f0d commit 3494fd1Copy full SHA for 3494fd1
src/Illuminate/Cache/RedisTagSet.php
@@ -79,11 +79,18 @@ public function entries()
79
*/
80
public function flushStaleEntries()
81
{
82
- $this->store->connection()->pipeline(function ($pipe) {
+ $flushStaleEntries = function ($pipe) {
83
foreach ($this->tagIds() as $tagKey) {
84
$pipe->zremrangebyscore($this->store->getPrefix().$tagKey, 0, Carbon::now()->getTimestamp());
85
}
86
- });
+ };
87
+
88
+ $connection = $this->store->connection();
89
+ if ($connection instanceof PhpRedisConnection) {
90
+ $flushStaleEntries($connection);
91
+ } else {
92
+ $connection->pipeline($flushStaleEntries);
93
+ }
94
95
96
/**
0 commit comments