Predis\Connection\ConnectionInterface::isConnected PHP Method

isConnected() public method

Checks if the connection to Redis is considered open.
public isConnected ( ) : boolean
return boolean
    public function isConnected();

Usage Example

コード例 #1
0
ファイル: Client.php プロジェクト: nrk/predis
 /**
  * Returns the current state of the underlying connection.
  *
  * @return bool
  */
 public function isConnected()
 {
     return $this->connection->isConnected();
 }