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

Function cmdSMCLEAR

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

Source from the content-addressed store, hash-verified

146}
147
148func cmdSMCLEAR(m uhaha.Machine, args []string) (interface{}, error) {
149 if len(args) < 2 {
150 return nil, uhaha.ErrWrongNumArgs
151 }
152
153 n, err := ldb.SMclear(stringSliceToBytes(args[1:])...)
154
155 return redcon.SimpleInt(n), err
156}
157
158func cmdSEXPIRE(m uhaha.Machine, args []string) (interface{}, error) {
159 if len(args) != 3 {

Callers

nothing calls this directly

Calls 1

stringSliceToBytesFunction · 0.85

Tested by

no test coverage detected