summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/getrange.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
commit7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch)
tree87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/getrange.md
parentAdding upstream version 1.12.1. (diff)
downloadiredis-df49d7c38b2b8498c93215691d16403b32becec8.tar.xz
iredis-df49d7c38b2b8498c93215691d16403b32becec8.zip
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/getrange.md')
-rw-r--r--iredis/data/commands/getrange.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/iredis/data/commands/getrange.md b/iredis/data/commands/getrange.md
index d25ac7a..7283def 100644
--- a/iredis/data/commands/getrange.md
+++ b/iredis/data/commands/getrange.md
@@ -1,10 +1,8 @@
-**Warning**: this command was renamed to `GETRANGE`, it is called `SUBSTR` in
-Redis versions `<= 2.0`.
-
Returns the substring of the string value stored at `key`, determined by the
-offsets `start` and `end` (both are inclusive). Negative offsets can be used in
-order to provide an offset starting from the end of the string. So -1 means the
-last character, -2 the penultimate and so forth.
+offsets `start` and `end` (both are inclusive).
+Negative offsets can be used in order to provide an offset starting from the end
+of the string.
+So -1 means the last character, -2 the penultimate and so forth.
The function handles out of range requests by limiting the resulting range to
the actual length of the string.