MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / init

Function init

internal/caches/manager.go:20–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18var SharedManager = NewManager()
19
20func init() {
21 if !teaconst.IsMain {
22 return
23 }
24
25 events.OnClose(func() {
26 remotelogs.Println("CACHE", "quiting cache manager")
27 SharedManager.UpdatePolicies([]*serverconfigs.HTTPCachePolicy{})
28 })
29}
30
31// Manager 缓存策略管理器
32type Manager struct {

Callers

nothing calls this directly

Calls 3

OnCloseFunction · 0.92
PrintlnFunction · 0.92
UpdatePoliciesMethod · 0.45

Tested by

no test coverage detected