MGET
Load multiple keys at once. For billing purposes, this counts as a single command. If a key is not found, it will be returned asnull, so you might end up with null values in your response array.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Work with Redis string commands like MGET, MSET, SET, and SETEX in the Upstash Redis TypeScript SDK.
null, so you might end up with null values in your response array.
const values = await redis.mget("key1", "key2", "key3");
await redis.mset({
key1: { a: 1 },
key2: "value2",
key3: true,
});
Was this page helpful?