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

Function cmdFLUSHALL

servers.go:21–30  ·  view source on GitHub ↗
(_ uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

19}
20
21func cmdFLUSHALL(_ uhaha.Machine, args []string) (interface{}, error) {
22 if len(args) != 1 {
23 return nil, uhaha.ErrWrongNumArgs
24 }
25 n, err := ldb.FlushAll()
26 if err != nil {
27 return nil, err
28 }
29 return redcon.SimpleInt(n), nil
30}
31
32func cmdFLUSHDB(_ uhaha.Machine, args []string) (interface{}, error) {
33 return cmdFLUSHALL(nil, args)

Callers 1

cmdFLUSHDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected