redis.msetnx({
    key1: 1,
    key2: "hello",
    key3: { a: 1, b: "hello" },
})

For billing purposes, this counts as a single command.

Arguments

Response

1 if all keys were set, 0 if at least one key was not set.

redis.msetnx({
    key1: 1,
    key2: "hello",
    key3: { a: 1, b: "hello" },
})