src/Traits/Redis/RedisFactoryTrait.php
public function getRedisFactory(): ?Factory
    {
        if (!$this->hasRedisFactory()) {
            $this->setRedisFactory($this->getDefaultRedisFactory());
        }
        return $this->redisFactory;
    }
public function getRedisFactory(): ?Factory
    {
        if (!$this->hasRedisFactory()) {
            $this->setRedisFactory($this->getDefaultRedisFactory());
        }
        return $this->redisFactory;
    }
public function getRedisFactory ( ) : ? Factory { if ( ! $ this -> hasRedisFactory ( ) ) { $ this -> setRedisFactory ( $ this -> getDefaultRedisFactory ( ) ) ; } return $ this -> redisFactory ; }
Get redis factory

If no redis factory has been set, this method will
set and return a default redis factory, if any such
value is available

@see getDefaultRedisFactory()

@return Factory|null redis factory or null if none redis factory has been set
Get redis factory