MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / FlushCache

Function FlushCache

hoverctl/wrapper/cache.go:7–19  ·  view source on GitHub ↗
(target configuration.Target)

Source from the content-addressed store, hash-verified

5)
6
7func FlushCache(target configuration.Target) error {
8 response, err := doRequest(target, "DELETE", v2ApiCache, "", nil)
9 if err != nil {
10 return err
11 }
12
13 err = handleResponseError(response, "Could not flush cache")
14 if err != nil {
15 return err
16 }
17
18 return nil
19}

Calls 2

handleResponseErrorFunction · 0.85
doRequestFunction · 0.70