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

Function cmdHPERSIST

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

Source from the content-addressed store, hash-verified

355 }
356 return redcon.SimpleInt(v), nil
357}
358
359func cmdHPERSIST(m uhaha.Machine, args []string) (interface{}, error) {
360 if len(args) != 2 {
361 return nil, uhaha.ErrWrongNumArgs
362 }
363
364 n, err := ldb.HPersist([]byte(args[1]))
365 if err != nil {
366 return nil, err
367 }
368 return redcon.SimpleInt(n), nil
369}
370

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected