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
keyalready exists, the givenstring_valueis appended to the end of the string value that is associated with thekey. - If the
keydoes not exist, it is created and associated with an empty string. - If the
keyis 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"