Set multiple keys in one go unless they exist already.
redis.msetnx({ key1: 1, key2: "hello", key3: { a: 1, b: "hello" }, })
For billing purposes, this counts as a single command.
1 if all keys were set, 0 if at least one key was not set.
1
0
Was this page helpful?