Arguments
*List[str]
required
Multiple keys to load from Redis.
Response
An array of values corresponding to the keys passed in. If a key doesn’t exist, the value will be
None.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.set("key1", "value1")
redis.set("key2", "value2")
assert redis.mget("key1", "key2") == ["value1", "value2"]
Load multiple keys from Redis in one go.
None.redis.set("key1", "value1")
redis.set("key2", "value2")
assert redis.mget("key1", "key2") == ["value1", "value2"]
Was this page helpful?