Skip to content

Commit acee5c7

Browse files
author
Maksim Kamashev
committed
fix ukko#28 - add method isConnected()
1 parent bcd3f76 commit acee5c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Redis.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ public function __construct( ) {}
107107
*/
108108
public function connect( $host, $port = 6379, $timeout = 0.0, $reserved = null, $retry_interval = 0 ) {}
109109

110+
/**
111+
* A method to determine if a phpredis object thinks it's connected to a server
112+
* @return bool Returns TRUE if phpredis thinks it's connected and FALSE if not
113+
*/
114+
public function isConnected() {}
115+
110116
/**
111117
* @see connect()
112118
* @param string $host

0 commit comments

Comments
 (0)