Pārlūkot izejas kodu

New command: GETRANGE (Redis v2.2-dev - replaces SUBSTR).

Daniele Alessandri 14 gadi atpakaļ
vecāks
revīzija
171a28fe26
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      lib/Predis.php

+ 5 - 0
lib/Predis.php

@@ -1795,6 +1795,7 @@ class RedisServer_vNext extends RedisServer_v2_0 {
 
             /* commands operating on string values */
             'strlen'                    => '\Predis\Commands\Strlen',
+            'getrange'                  => '\Predis\Commands\GetRange',
 
             /* commands operating on the key space */
             'persist'                   => '\Predis\Commands\Persist',
@@ -2346,6 +2347,10 @@ class Append extends Command {
     public function getCommandId() { return 'APPEND'; }
 }
 
+class GetRange extends Command {
+    public function getCommandId() { return 'GETRANGE'; }
+}
+
 class Substr extends Command {
     public function getCommandId() { return 'SUBSTR'; }
 }