String
GETRANGE
Return a substring of value at the specified key.
const substring = await redis.getrange("key", 2, 4);
Arguments
key
string
requiredThe key to get.
start
integer
requiredThe start index of the substring.
end
integer
requiredThe end index of the substring.
Response
The substring.
const substring = await redis.getrange("key", 2, 4);