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

Function cmdLKEYEXISTS

lists.go:80–90  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

78
79 if err := ldb.LTrim([]byte(args[1]), start, stop); err != nil {
80 return nil, err
81 }
82 return redcon.SimpleString("OK"), nil
83}
84
85func cmdLKEYEXISTS(m uhaha.Machine, args []string) (interface{}, error) {
86 if len(args) != 2 {
87 return nil, uhaha.ErrWrongNumArgs
88 }
89
90 n, err := ldb.LKeyExists([]byte(args[1]))
91 if err != nil {
92 return nil, err
93 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected