Skip to main content

MSET

Syntax

MSET key value [key value ...]

Module

generic

Categories

write slow

Description

Set or modify multiple key/value pairs at once.

Examples

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"})