MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / cmdHKEYEXISTS

Function cmdHKEYEXISTS

hashes.go:369–379  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

367 }
368 return redcon.SimpleInt(n), nil
369}
370
371func cmdHKEYEXISTS(m uhaha.Machine, args []string) (interface{}, error) {
372 if len(args) != 2 {
373 return nil, uhaha.ErrWrongNumArgs
374 }
375
376 n, err := ldb.HKeyExists([]byte(args[1]))
377 if err != nil {
378 return nil, err
379 }
380 return redcon.SimpleInt(n), nil
381}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected