SETRANGE
Attention
This page documents an earlier version. Go to the latest (v2.3) version.Synopsis
SETRANGE key offset value
This command overwrites the string that is associated with the given key
with the given value
, starting from the given offset
.
Return value
Returns the length of the resulted string after overwriting.
Examples
$ SET yugakey "YugaKey"
"OK"
$ SETRANGE yugakey 4 "Byte"
8
$ GET yugakey
"Yugabyte"