Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 85dd875

Browse filesBrowse files
committed
Predis RedisCluster does not support RENAME either
1 parent 6a6127a commit 85dd875
Copy full SHA for 85dd875

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php
+2-3Lines 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\ClientInterface && $this->redis->getConnection() instanceof PredisCluster) {
146+
if ($this->redis instanceof \Predis\ClientInterface && $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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.