From 360b734404eb9de4630396f8cb19af28bc70a496 Mon Sep 17 00:00:00 2001 From: Stephan Nordnes Eriksen Date: Fri, 26 Jan 2018 08:51:10 +0100 Subject: [PATCH] incorrect GETRANGE description https://redis.io/commands/getrange It seems the GETRANGE description is incorrect. Updated for correctness. Perhaps the longer description is better; `# get substring of the value stored in key, determined by the offsets start and end (both are inclusive).` --- databases/redis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databases/redis.sh b/databases/redis.sh index 65b01c7..fcd1f4c 100644 --- a/databases/redis.sh +++ b/databases/redis.sh @@ -21,7 +21,7 @@ STRLEN key # get the length of the value stored in a key MSET key value [key value ...] # set multiple keys to multiple values MSETNX key value [key value ...] # set multiple keys to multiple values, only if none of the keys exist GET key # get value in key -GETRANGE key value # get a substring value of a key and return its old value +GETRANGE key start end # get substring of stored value from start to end offsets (both inclusive) MGET key [key ...] # get the values of all the given keys INCR key # increment value in key INCRBY key increment # increment the integer value of a key by the given amount