Skip to main content

GETDEL

Syntax​

GETDEL key

Module​

generic

Categories​

fast write

Description​

Get the value of key and delete the key. This command is similar to [GET], but deletes key on success.

Examples​

Get the value at the specified key:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
value, err := db.GetDel("key")