Add required methods to Predis\IConnectionSingle and Predis\IConnectionCluster interfaces.

This commit is contained in:
Daniele Alessandri
2010-06-10 11:26:12 +02:00
parent a2c9cb38a5
commit e191d0a7ce
+9 -2
View File
@@ -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;