SETRANGE key offset value
This command overwrites the string that is associated with the given
key with the given
value, starting from the given
offsetcannot exceed 536870911.
offsetis larger than the length of the specified string, the string will be padded with zeros up to the
keydoes not exist, its associated string is an empty string. The resulted new string is constructed with zeros up to the given
offsetand then appended with the given
keyis associated with a non-string value, an error is raised.
Returns the length of the resulted string after overwriting.
$ SET yugakey "YugaKey"
```sh $ SETRANGE yugakey 4 "Byte"
```sh $ GET yugakey