SETRANGE
Overwrites string bytes starting at an offset.
Strings · Example verified
Syntax covered here
SETRANGE key offset valueThe case replaces the first byte within an existing string and reports the unchanged total length.
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
> SETRANGE greeting 0 H
5