await redis.mset({
    key1: 1,
    key2: "hello",
    key3: { a: 1, b: "hello" },
});
For billing purposes, this counts as a single command.

Arguments

params
Record<string, TValue>
required
An object where the keys are the keys to set, and the values are the values to set.

Response

“OK”
await redis.mset({
    key1: 1,
    key2: "hello",
    key3: { a: 1, b: "hello" },
});