MGET
Syntax
MGET key [key ...]
Module
genericCategories
fast keyspace readDescription
Get multiple values from the specified keys.
Examples
- Go (Embedded)
- CLI
Get the values at the specified keys:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
values, err := db.MGet("key1", "key2", "key3")
Get the values at the specified keys:
> MGET key1 key2 key3