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

Function cmdSREM

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

Source from the content-addressed store, hash-verified

119}
120
121func cmdSREM(m uhaha.Machine, args []string) (interface{}, error) {
122 if len(args) < 3 {
123 return nil, uhaha.ErrWrongNumArgs
124 }
125
126 n, err := ldb.SRem([]byte(args[1]), stringSliceToBytes(args[2:])...)
127 return redcon.SimpleInt(n), err
128}
129
130func cmdSUNION(m uhaha.Machine, args []string) (interface{}, error) {
131 return soptGeneric(stringSliceToBytes(args), ledis.UnionType)

Callers

nothing calls this directly

Calls 1

stringSliceToBytesFunction · 0.85

Tested by

no test coverage detected