mirror of
https://github.com/predis/predis.git
synced 2026-09-12 19:37:05 +00:00
Add the OBJECT command to the dev server profile.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user