mirror of
https://github.com/predis/predis.git
synced 2026-09-05 23:47:28 +00:00
Add required methods to Predis\IConnectionSingle and Predis\IConnectionCluster interfaces.
This commit is contained in:
+9
-2
@@ -1086,9 +1086,16 @@ interface IConnection {
|
||||
public function executeCommand(Command $command);
|
||||
}
|
||||
|
||||
interface IConnectionSingle extends IConnection { }
|
||||
interface IConnectionSingle extends IConnection {
|
||||
public function writeBytes($buffer);
|
||||
public function readBytes($length);
|
||||
public function readLine();
|
||||
}
|
||||
|
||||
interface IConnectionCluster extends IConnection { }
|
||||
interface IConnectionCluster extends IConnection {
|
||||
public function getConnection(Command $command);
|
||||
public function getConnectionById($connectionId);
|
||||
}
|
||||
|
||||
class TcpConnection implements IConnectionSingle {
|
||||
private $_params, $_socket, $_initCmds, $_reader;
|
||||
|
||||
Reference in New Issue
Block a user