MSET
Syntax
MSET key value [key value ...]
Module
genericCategories
write slowDescription
Set or modify multiple key/value pairs at once.
Examples
- Go (Embedded)
- CLI
Set multiple key/value pairs:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.MSet(map[string]string{"key1": "value1", "key2": "value2", "key3": "value3"})
Set multiple key/value pairs:
> MSET key1 value1 key2 value2 key3 value3