Skip to main content

HEXISTS

Syntax

HEXISTS key field

Module

hash

Categories

fast hash read

Description

Returns if field is an existing field in the hash.

Examples

Returns if field exists in a hash:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
exists, err := db.HExists ("key", "field1")