MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / MSET

Method MSET

strings.go:150–153  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

148//
149// Works similar to https://redis.io/commands/mset
150func (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.

Callers 1

TestAtomicOpsFunction · 0.80

Calls 1

msetMethod · 0.95

Tested by 1

TestAtomicOpsFunction · 0.64