MSET sets the given keys and values atomically in a transaction. The call is limited to 25 keys and 4MB. See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html Works similar to https://redis.io/commands/mset
(data map[string]Value)
| 148 | // |
| 149 | // Works similar to https://redis.io/commands/mset |
| 150 | func (c Client) MSET(data map[string]Value) (err error) { |
| 151 | _, err = c.mset(data, Flags{}) |
| 152 | return |
| 153 | } |
| 154 | |
| 155 | // MSETNX sets the given keys and values atomically in a transaction, but only if none of the given |
| 156 | // keys exist. If one or more of the keys already exist, nothing will be changed and MSETNX will return false. |