MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / runCacheClear

Function runCacheClear

cmd/cache.go:31–43  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

29}
30
31func runCacheClear(cmd *cobra.Command, args []string) error {
32 database, err := db.New()
33 if err != nil {
34 return err
35 }
36 defer database.Close()
37
38 if err := database.ClearAll(); err != nil {
39 return err
40 }
41 fmt.Println("Cache and history cleared.")
42 return nil
43}
44
45func runCacheStats(cmd *cobra.Command, args []string) error {
46 database, err := db.New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
CloseMethod · 0.80
ClearAllMethod · 0.80

Tested by

no test coverage detected