mirror of
https://github.com/predis/predis.git
synced 2026-09-13 03:47:03 +00:00
Add the new Predis\Protocols\IRedisProtocolExtended interface.
This commit is contained in:
+5
-1
@@ -1485,6 +1485,10 @@ use Predis\Network\IConnectionSingle;
|
||||
interface IRedisProtocol {
|
||||
public function write(IConnectionSingle $connection, ICommand $command);
|
||||
public function read(IConnectionSingle $connection);
|
||||
public function setOption($option, $value);
|
||||
}
|
||||
|
||||
interface IRedisProtocolExtended extends IRedisProtocol {
|
||||
public function setSerializer(ICommandSerializer $serializer);
|
||||
public function getSerializer();
|
||||
public function setReader(IResponseReader $reader);
|
||||
@@ -1504,7 +1508,7 @@ interface IResponseHandler {
|
||||
function handle(IConnectionSingle $connection, $payload);
|
||||
}
|
||||
|
||||
class TextProtocol implements IRedisProtocol {
|
||||
class TextProtocol implements IRedisProtocolExtended {
|
||||
const NEWLINE = "\r\n";
|
||||
const OK = 'OK';
|
||||
const ERROR = 'ERR';
|
||||
|
||||
Reference in New Issue
Block a user