Browse Source

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

Daniele Alessandri 15 years ago
parent
commit
9e417d9bcf
1 changed files with 6 additions and 0 deletions
  1. 6 0
      lib/Predis.php

+ 6 - 0
lib/Predis.php

@@ -1238,6 +1238,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
                 'hashKeys'              => '\Predis\Commands\HashKeys',
             'hvals'                     => '\Predis\Commands\HashValues',
                 'hashValues'            => '\Predis\Commands\HashValues',
+            'hgetall'                   => '\Predis\Commands\HashGetAll',
+                'hashKeysValues'        => '\Predis\Commands\HashGetAll',
         ));
     }
 }
@@ -1768,6 +1770,10 @@ class HashValues extends \Predis\InlineCommand {
     public function getCommandId() { return 'HVALS'; }
 }
 
+class HashGetAll extends \Predis\InlineCommand {
+    public function getCommandId() { return 'HGETALL'; }
+}
+
 /* multiple databases handling commands */
 class SelectDatabase extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }