Browse Source

Add the OBJECT command to the dev server profile.

Daniele Alessandri 14 years ago
parent
commit
80f1cedf79
3 changed files with 17 additions and 1 deletions
  1. 1 1
      TODO
  2. 15 0
      lib/Predis/Commands/DebugObject.php
  3. 1 0
      lib/Predis/Profiles/ServerVersionNext.php

+ 1 - 1
TODO

@@ -10,4 +10,4 @@
   as it does not cover all of its features.
 
 * Missing tests for commands:
-    PUBLISH, SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE
+    PUBLISH, SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, DEBUG, OBJECT

+ 15 - 0
lib/Predis/Commands/DebugObject.php

@@ -0,0 +1,15 @@
+<?php
+
+namespace Predis\Commands;
+
+use Predis\Helpers;
+
+class DebugObject extends Command {
+    public function getId() {
+        return 'OBJECT';
+    }
+
+    protected function canBeHashed() {
+        return false;
+    }
+}

+ 1 - 0
lib/Predis/Profiles/ServerVersionNext.php

@@ -8,6 +8,7 @@ class ServerVersionNext extends ServerVersion22 {
         return array_merge(parent::getSupportedCommands(), array(
             /* remote server control commands */
             'info'                  => '\Predis\Commands\InfoV24x',
+            'object'                => '\Predis\Commands\DebugObject',
         ));
     }
 }