Strings Mget
# Redis Mget Command
[!(#) Redis Strings](#)
The Redis Mget command returns all (one or more) values of given keys. If any of the specified keys doesn't exist, that key will return the special value nil.
### Syntax
The basic syntax of Redis Mget command is as follows:
redis 127.0.0.1:6379> MGET KEY1 KEY2 .. KEYN
### Available Version
>= 1.0.0
### Return Value
A list containing values of all specified keys.
### Example
redis 127.0.0.1:6379> SET key1 "hello" OK redis 127.0.0.1:6379> SET key2 "world" OK redis 127.0.0.1:6379> MGET key1 key2 someOtherKey 1) "Hello"2) "World"3) (nil)
[!(#) Redis Strings](#)
YouTip