Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit85dd875

Browse files
author
André R
committed
Predis RedisCluster does not support RENAME either
1 parent6a6127a commit85dd875

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
namespaceSymfony\Component\Cache\Adapter;
1313

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp