mget
MGET
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Get
mget gets multiple values at once.
Usage is mget key [key ...].
If a key does not exist, (nil) is returned.
Example
| Command> | mset key1 Hello key2 Redis |
| Result> | OK |
| Command> | mget key1 key2 |
| Result> | 1) Hello 2) Redis |
Syntax
MGET key [key ...]
- Available since version 1.0.0.
- Time complexity is O(N).
| Related commands | GET |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << MSET | MGET | MSETNX >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
