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

Function cmdSPERSIST

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

Source from the content-addressed store, hash-verified

209func cmdSTTL(m uhaha.Machine, args []string) (interface{}, error) {
210 if len(args) != 2 {
211 return nil, uhaha.ErrWrongNumArgs
212 }
213
214 v, err := ldb.STTL([]byte(args[1]))
215 return redcon.SimpleInt(v), err
216}
217
218func cmdSPERSIST(m uhaha.Machine, args []string) (interface{}, error) {
219 if len(args) != 2 {
220 return nil, uhaha.ErrWrongNumArgs
221 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected