Skip to main content

MGET

Syntax

MGET key [key ...]

Module

generic

Categories

fast keyspace read

Description

Get multiple values from the specified keys.

Examples

Get the values at the specified keys:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
values, err := db.MGet("key1", "key2", "key3")