MGET
MGET key [key ...]
@read, @string, @fast, Returns the values of all specified keys. For every key that does not hold a string value or does not exist, the special value nil is returned. Because of this, the operation never fails.
Array reply: list of values at the specified keys.
SET key1 "Hello" SET key2 "World" MGET key1 key2 nonexisting
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/mget/