set_subquery
SETS (subquery)
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Subquery feature
You can put a subquery in the value part.
Commands that can be used as a subquery:
- SETS key (GET key1)
- SETS key (LPOP mylist)
- SETS key (RPOP mylist)
- SETS key (LINDEX mylist 3)
- SETS key (LRANGE mylist 3 3)
- SETS key (HGET myhash field)
Example
| Command> | set key Hello |
| Result> | OK |
| Command> | sets key4 (get key) |
| Result> | OK |
| Command> | get key4 |
| Result> | Hello |
| This command is available since Enterprise version 7.2.5. |
Syntax
SETS key (subquery)
- Available since Enterprise version 7.2.5.
- Time complexity depends on the subquery.
| << SET | SETS | DEL >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
