MCPcopy Index your code
hub / github.com/CodisLabs/codis / ForceGC

Method ForceGC

pkg/proxy/proxy_api.go:172–179  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

170}
171
172func (s *apiServer) ForceGC(params martini.Params) (int, string) {
173 if err := s.verifyXAuth(params); err != nil {
174 return rpc.ApiResponseError(err)
175 } else {
176 runtime.GC()
177 return rpc.ApiResponseJson("OK")
178 }
179}
180
181func (s *apiServer) LogLevel(params martini.Params) (int, string) {
182 if err := s.verifyXAuth(params); err != nil {

Callers 1

handleForceGCMethod · 0.45

Calls 1

verifyXAuthMethod · 0.95

Tested by

no test coverage detected