Fully managed and integrated with Google Cloud, Azure, and AWS.
Build the fastest, most reliable GenAI apps with our advanced vector database.
Self-managed software with enterprise-grade compliance and reliability.
Synchronize data in near-real time to make data fast—without writing code.
In-memory database for caching & streaming.
JSON.STRAPPEND key [path] value
@json
,
@write
,
@slow
,
Append the json-string
values to the string at path
key
is key to modify.
value
is value to append to one or more strings.
'"silver"'
. For more detailed use, see Examples.path
is JSONPath to specify. Default is root $
.
JSON.STRAPPEND returns an array of integer replies for each path, the string's new length, or nil
, if the matching JSON value is not a string.
For more information about replies, see Redis serialization protocol specification.
redis> JSON.SET doc $ '{"a":"foo", "nested": {"a": "hello"}, "nested2": {"a": 31}}'
OK
redis> JSON.STRAPPEND doc $..a '"baz"'
1) (integer) 6
2) (integer) 8
3) (nil)
redis> JSON.GET doc $
"[{\"a\":\"foobaz\",\"nested\":{\"a\":\"hellobaz\"},\"nested2\":{\"a\":31}}]"
JSON.ARRAPEND
| JSON.ARRINSERT