mirror of
https://github.com/predis/predis.git
synced 2026-09-16 05:17:02 +00:00
New command: SUBSTR (Redis v2.0-dev).
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user