MCPcopy Create free account
hub / github.com/go-openapi/spec / initResolutionCache

Function initResolutionCache

cache.go:66–68  ·  view source on GitHub ↗

initResolutionCache initializes the URI resolution cache. To be wrapped in a sync.Once.Do call.

()

Source from the content-addressed store, hash-verified

64
65// initResolutionCache initializes the URI resolution cache. To be wrapped in a sync.Once.Do call.
66func initResolutionCache() {
67 resCache = defaultResolutionCache()
68}
69
70func defaultResolutionCache() *simpleCache {
71 return &simpleCache{store: map[string]any{

Callers

nothing calls this directly

Calls 1

defaultResolutionCacheFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…