MGET
Retrieves several string values in key argument order.
Strings · Example verified
Syntax covered here
MGET key [key ...]A missing key contributes null at its original position, preserving the mapping between keys and results.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> MSET one 1 two 2
"OK"
# connection: default
> MGET one missing two
["1",null,"2"]