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()) {