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

Function cmdLTTL

lists.go:104–114  ·  view source on GitHub ↗

func cmdLPERSIST(m uhaha.Machine, args []string) (interface{}, error) { if len(args) != 2 { return nil, uhaha.ErrWrongNumArgs } n, err := ldb.LPersist([]byte(args[1])) if err != nil { return nil, err } return redcon.SimpleInt(n), nil }

(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

102// n, err := ldb.LPersist([]byte(args[1]))
103// if err != nil {
104// return nil, err
105// }
106// return redcon.SimpleInt(n), nil
107// }
108
109func cmdLTTL(m uhaha.Machine, args []string) (interface{}, error) {
110 if len(args) != 2 {
111 return nil, uhaha.ErrWrongNumArgs
112 }
113
114 v, err := ldb.LTTL([]byte(args[1]))
115 if err != nil {
116 return nil, err
117 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected