Skip to content

Commit c7d4750

Browse files
committed
Predis RedisCluster does not support RENAME either
1 parent be04079 commit c7d4750

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Cache\Adapter;
1313

1414
use Predis\Connection\Aggregate\ClusterInterface;
15-
use Predis\Connection\Aggregate\PredisCluster;
1615
use Predis\Response\Status;
1716
use Symfony\Component\Cache\CacheItem;
1817
use Symfony\Component\Cache\Marshaller\MarshallerInterface;
@@ -144,10 +143,10 @@ protected function doDelete(array $ids, array $tagData = []): bool
144143
*/
145144
protected function doInvalidate(array $tagIds): bool
146145
{
147-
if ($this->redis instanceof \Predis\Client && $this->redis->getConnection() instanceof PredisCluster) {
146+
if ($this->redis instanceof \Predis\Client && $this->redis->getConnection() instanceof ClusterInterface) {
148147
CacheItem::log(
149148
$this->logger,
150-
'PredisCluster does not support RENAME so there is a risk of race conditions on tag invalidation, please use RedisCluster instead.'
149+
'Cluster on Predis does not support RENAME so there is a risk of race conditions on tag invalidation, please use phpredis instead.'
151150
);
152151
$movedTagSetIds = $tagIds;
153152
} else {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy