SETRANGE
Note
Official reference: SETRANGE.
Overwrite a string starting at a byte offset.
Syntax
SETRANGE key offset value
offset is zero-based and nonnegative. Gaps beyond the previous length are padded with zero bytes.
Results
| Return | Rows | Content |
|---|---|---|
| Update count | -- | Length of the string after modification. |
Example
SET demo:message hello
SETRANGE demo:message 1 a