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