EXISTS
Syntax
EXISTS
Module
genericCategories
fast read keyspaceDescription
Returns the number of keys that exists from the provided list of keys. Note: If duplicate keys are provided, each one is counted separately.
Examples
- Go (Embedded)
- CLI
Return the number of keys that exists:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
key, err := db.Exists("key1")
Return the number of keys that exists:
> EXISTS key1 key2