Add the OBJECT command to the dev server profile.

This commit is contained in:
Daniele Alessandri
2011-04-06 12:49:54 +02:00
parent 86df741937
commit 80f1cedf79
3 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -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
View File
@@ -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;
}
}
@@ -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',
));
}
}