Sfoglia il codice sorgente

New command: CONFIG (Redis v2.0-dev).

Daniele Alessandri 15 anni fa
parent
commit
2d8007448f
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      lib/Predis.php

+ 9 - 0
lib/Predis.php

@@ -1242,6 +1242,10 @@ class RedisServer_vNext extends RedisServer_v1_2 {
                 'hashValues'            => '\Predis\Commands\HashValues',
             'hgetall'                   => '\Predis\Commands\HashGetAll',
                 'hashKeysValues'        => '\Predis\Commands\HashGetAll',
+
+            /* remote server control commands */
+            'config'                    => '\Predis\Commands\Config',
+                'configuration'         => '\Predis\Commands\Config',
         ));
     }
 }
@@ -1914,6 +1918,11 @@ class SlaveOf extends \Predis\InlineCommand {
     }
 }
 
+class Config extends \Predis\BulkCommand {
+    public function canBeHashed()  { return false; }
+    public function getCommandId() { return 'CONFIG'; }
+}
+
 class Multi extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'MULTI'; }