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

Function cmdSKEYEXISTS

set.go:220–227  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

218func cmdSPERSIST(m uhaha.Machine, args []string) (interface{}, error) {
219 if len(args) != 2 {
220 return nil, uhaha.ErrWrongNumArgs
221 }
222
223 n, err := ldb.SPersist([]byte(args[1]))
224 return redcon.SimpleInt(n), err
225}
226
227func cmdSKEYEXISTS(m uhaha.Machine, args []string) (interface{}, error) {
228 if len(args) != 2 {
229 return nil, uhaha.ErrWrongNumArgs
230 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected