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

Function cmdZCLEAR

sorted_sets.go:259–270  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

257}
258
259func cmdZCLEAR(m uhaha.Machine, args []string) (interface{}, error) {
260 if len(args) < 2 {
261 return nil, uhaha.ErrWrongNumArgs
262 }
263
264 n, err := ldb.ZClear([]byte(args[1]))
265 if err != nil {
266 return nil, err
267 }
268
269 return redcon.SimpleInt(n), nil
270}
271
272func cmdZREM(m uhaha.Machine, args []string) (interface{}, error) {
273 if len(args) < 3 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected