kevy4.0

MSET

Set multiple key/value pairs atomically per shard.

MSET key value [key value ...]
Group
String
Since
1.0.0
Arity
at least 3
Flags
write

Complexity

O(N) pairs, one O(1) SET each

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

atomic only per shard — pairs are split by key and applied shard-by-shard with no cross-shard barrier, so a reader can observe some pairs written and others not; Redis MSET is globally atomic

See also

APPENDDECRDECRBYGETGETDELGETSETINCRINCRBYINCRBYFLOATMGETPSETEXSETSETEXSETNXSTRLEN

← All commands