diff options
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py index 4b34986..78ef51f 100644 --- a/redis/client.py +++ b/redis/client.py @@ -393,6 +393,13 @@ class StrictRedis(object): """ return self.execute_command('APPEND', key, value) + def getrange(self, key, start, end): + """ + Returns the substring of the string value stored at ``key``, + determined by the offsets ``start`` and ``end`` (both are inclusive) + """ + return self.execute_command('GETRANGE', key, start, end) + def decr(self, name, amount=1): """ Decrements the value of ``key`` by ``amount``. If no key exists, |