MCPcopy Create free account
hub / github.com/docker/docker-language-server / NewManager

Function NewManager

internal/cache/manager.go:26–31  ·  view source on GitHub ↗
(fetcher Fetcher[T])

Source from the content-addressed store, hash-verified

24}
25
26func NewManager[T any](fetcher Fetcher[T]) CacheManager[T] {
27 return &CacheManagerImpl[T]{
28 cache: make(map[string]T),
29 fetcher: fetcher,
30 }
31}
32
33func (c *CacheManagerImpl[T]) Get(key Key) (T, error) {
34 c.mutex.Lock()

Callers 2

NewServiceFunction · 0.92
NewServiceFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected