소스 검색

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

Daniele Alessandri 14 년 전
부모
커밋
171a28fe26
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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'; }
 }