Преглед на файлове

Add the new Predis\Protocols\IRedisProtocolExtended interface.

Daniele Alessandri преди 14 години
родител
ревизия
fe0a940f18
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      lib/Predis.php

+ 5 - 1
lib/Predis.php

@@ -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';