isConnected() public method

Checks if the connection to Redis is considered open.
public isConnected ( ) : boolean
return boolean
示例#1
0
文件: Client.php 项目: nrk/predis
 /**
  * Returns the current state of the underlying connection.
  *
  * @return bool
  */
 public function isConnected()
 {
     return $this->connection->isConnected();
 }