HEXISTS
Syntax
HEXISTS key field
Module
hashCategories
fast hash readDescription
Returns if field is an existing field in the hash.
Examples
- Go (Embedded)
- CLI
Returns if field exists in a hash:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
exists, err := db.HExists ("key", "field1")
Returns if field exists in a hash:
> HEXISTS key field1