@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $isCluster = config('database.redis.clusters.' . ($connection_name ?? 'default')) !== null; |
87 | 87 | $advancedMode = (int) config('supercache.advancedMode', 0) === 1; |
88 | 88 | if (!$isCluster) { |
89 | - $this->redis->pipeline(function ($pipe) use ($finalKey, $value, $tags, $ttl, $advancedMode) { |
|
89 | + $this->redis->pipeline(function($pipe) use ($finalKey, $value, $tags, $ttl, $advancedMode) { |
|
90 | 90 | if ($ttl !== null) { |
91 | 91 | $pipe->setEx($finalKey, $ttl, $this->serializeForRedis($value)); |
92 | 92 | } else { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $tags = $this->redis->getRedisConnection($connection_name)->smembers($this->prefix . 'tags:' . $finalKey); |
185 | 185 | $isCluster = config('database.redis.clusters.' . ($connection_name ?? 'default')) !== null; |
186 | 186 | if (!$isCluster) { |
187 | - $this->redis->pipeline(function ($pipe) use ($tags, $finalKey) { |
|
187 | + $this->redis->pipeline(function($pipe) use ($tags, $finalKey) { |
|
188 | 188 | foreach ($tags as $tag) { |
189 | 189 | $shard = $this->getShardNameForTag($tag, $finalKey); |
190 | 190 | $pipe->srem($shard, $finalKey); |