Sfoglia il codice sorgente

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

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

+ 6 - 0
lib/Predis.php

@@ -1234,6 +1234,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
                 'hashGet'               => '\Predis\Commands\HashGet',
             'hdel'                      => '\Predis\Commands\HashDelete',
                 'hashDelete'            => '\Predis\Commands\HashDelete',
+            'hexists'                   => '\Predis\Commands\HashExists',
+                'hashExists'            => '\Predis\Commands\HashExists',
             'hlen'                      => '\Predis\Commands\HashLength',
                 'hashLength'            => '\Predis\Commands\HashLength',
             'hkeys'                     => '\Predis\Commands\HashKeys',
@@ -1768,6 +1770,10 @@ class HashDelete extends \Predis\BulkCommand {
     public function getCommandId() { return 'HDEL'; }
 }
 
+class HashExists extends \Predis\BulkCommand {
+    public function getCommandId() { return 'HEXISTS'; }
+}
+
 class HashLength extends \Predis\InlineCommand {
     public function getCommandId() { return 'HLEN'; }
 }