Arguments
...string
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
null.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
type MyType = {
a: number;
b: string;
}
const values = await redis.mget<MyType>("key1", "key2", "key3");
// values.length -> 3
Load multiple keys from Redis in one go.
null.type MyType = {
a: number;
b: string;
}
const values = await redis.mget<MyType>("key1", "key2", "key3");
// values.length -> 3
Was this page helpful?