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

Function cmdHCLEAR

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

Source from the content-addressed store, hash-verified

262 }
263 return v, nil
264}
265
266func cmdHCLEAR(m uhaha.Machine, args []string) (interface{}, error) {
267 if len(args) != 2 {
268 return nil, uhaha.ErrWrongNumArgs
269 }
270
271 n, err := ldb.HClear([]byte(args[1]))
272 if err != nil {
273 return nil, err
274 }
275 return redcon.SimpleInt(n), nil
276}
277

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected