From 9bcb7f611fd855d05c713b2ababf707c46b7186c Mon Sep 17 00:00:00 2001 From: "huy.lehuu" Date: Thu, 14 Nov 2024 14:32:32 +0700 Subject: [PATCH] adjust rediscluster constant --- lib/Phpfastcache/Drivers/Rediscluster/Driver.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Phpfastcache/Drivers/Rediscluster/Driver.php b/lib/Phpfastcache/Drivers/Rediscluster/Driver.php index 54b8afb0..3a3a22f8 100644 --- a/lib/Phpfastcache/Drivers/Rediscluster/Driver.php +++ b/lib/Phpfastcache/Drivers/Rediscluster/Driver.php @@ -24,6 +24,7 @@ use Phpfastcache\Entities\DriverStatistic; use Phpfastcache\Exceptions\PhpfastcacheLogicException; use RedisCluster; +use Redis; /** * @property RedisCluster $instance @@ -104,10 +105,10 @@ protected function driverConnect(): bool $this->getConfig()->getPassword() ); - $this->instance->setOption(RedisCluster::OPT_SCAN, RedisCluster::SCAN_RETRY); + $this->instance->setOption(Redis::OPT_SCAN, Redis::SCAN_RETRY); if ($this->getConfig()->getOptPrefix()) { - $this->instance->setOption(RedisCluster::OPT_PREFIX, $this->getConfig()->getOptPrefix()); + $this->instance->setOption(Redis::OPT_PREFIX, $this->getConfig()->getOptPrefix()); } if ($this->getConfig()->getSlaveFailover()) {