source/Redis/Connection.php
private function getRedis() {
        if (is_null($this->Redis)) {
            if ($this->isConfigured()) {
                $this->Redis = new \Redis();
                $this->connect();
            } else {
                throw new RedisNotConfiguredException();
            }
        }
        return $this->Redis;
    }
private function getRedis() {
        if (is_null($this->Redis)) {
            if ($this->isConfigured()) {
                $this->Redis = new \Redis();
                $this->connect();
            } else {
                throw new RedisNotConfiguredException();
            }
        }
        return $this->Redis;
    }
private function getRedis ( ) { if ( is_null ( $ this -> Redis ) ) { if ( $ this -> isConfigured ( ) ) { $ this -> Redis = new \ Redis ( ) ; $ this -> connect ( ) ; } else { throw new RedisNotConfiguredException ( ) ; } } return $ this -> Redis ; }
Getter of phpredis object
@return \Redis phpredis object instance
@throws RedisNotConfiguredException if any of required redis connect parameters are loose
Getter of phpredis object