HDEL
Syntax
HDEL key field [field ...]
Module
hashCategories
fast hash writeDescription
Deletes the specified fields from the hash.
Examples
- Go (Embedded)
- CLI
Delete fields from a hash:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
deletedCount, err := db.HDel("key", "field1", "field2")
Delete fields from a hash:
> HDEL key field1 field2