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

This commit is contained in:
Daniele Alessandri
2010-03-04 12:12:10 +01:00
parent 460dfce7f6
commit 0b229a5057
+5
View File
@@ -1094,6 +1094,7 @@ class RedisServer_vNext extends RedisServer_v1_2 {
/* commands operating on string values */
'append' => '\Predis\Commands\Append',
'substr' => '\Predis\Commands\Substr',
/* commands operating on lists */
'blpop' => '\Predis\Commands\ListPopFirstBlocking',
@@ -1271,6 +1272,10 @@ class Append extends \Predis\BulkCommand {
public function getCommandId() { return 'APPEND'; }
}
class Substr extends \Predis\InlineCommand {
public function getCommandId() { return 'SUBSTR'; }
}
/* commands operating on the key space */
class Keys extends \Predis\InlineCommand {
public function canBeHashed() { return false; }