Predis\Client::getConnection PHP Method

getConnection() public method

public getConnection ( )
    public function getConnection()
    {
        return $this->connection;
    }

Usage Example

コード例 #1
0
ファイル: AMQHandler.php プロジェクト: bcrazvan/MateCat
 /**
  * Lazy connection
  *
  * Get the connection to Redis server and return it
  *
  * @throws \Predis\Connection\ConnectionException
  */
 public function getRedisClient()
 {
     if (empty($this->redisHandler)) {
         $this->redisHandler = new RedisHandler();
     }
     return $this->redisHandler->getConnection();
 }
All Usage Examples Of Predis\Client::getConnection