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

Function cmdHTTL

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

Source from the content-addressed store, hash-verified

343 }
344 return redcon.SimpleInt(v), nil
345}
346
347func cmdHTTL(m uhaha.Machine, args []string) (interface{}, error) {
348 if len(args) != 2 {
349 return nil, uhaha.ErrWrongNumArgs
350 }
351
352 v, err := ldb.HTTL([]byte(args[1]))
353 if err != nil {
354 return nil, err
355 }
356 return redcon.SimpleInt(v), nil
357}
358

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected