append_subquery
APPENDS (subquery)
Subquery feature
You can put a value using a subquery in the value part.
Commands that can be used as a subquery are GET, MGET, LPOP, RPOP, LINDEX, LRANGE,
SMEMBERS, SUNION, SINTER, SDIFF, ZRANGE, ZREVRANGE,
HGET, HMGET, HKEYS, HVALS, HGETALL.
Example
| Command> | appends key (get key2) |
| Result> | 15 |
| Command> | appends key (lrange mylist 0 -1) |
| Result> | 200 |
| Command> | appends key (hvals myhash) |
| Result> | 300 |
Syntax
APPENDS key (subquery)
- Available since Enterprise version 7.2.5.
- Time complexity depends on the subquery.