GETRANGE
Returns a byte range from a string.
Strings · Example verified
Syntax covered here
GETRANGE key start endOffsets are zero-based and the end position is included in the tested range.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET greeting hello
"OK"
# connection: default
> GETRANGE greeting 1 3
"ell"