APPEND
Synopsis
APPEND key string_value
This command appends a value to the end of the string that is associated with the given key
.
- If the
key
already exists, the givenstring_value
is appended to the end of the string value that is associated with thekey
. - If the
key
does not exist, it is created and associated with an empty string. - If the
key
is associated with a non-string value, an error is raised.
Return value
Returns the length of the resulted string after appending.
Examples
$ GET yugakey
"Yuga"
$ APPEND yugakey "Byte"
8
$ GET yugakey
"Yugabyte"
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .