MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / CachingResolver

Struct CachingResolver

dialer/rescache.go:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24type CachingResolver struct {
25 next Resolver
26 cache secache.Cache[resolverCacheKey, *resolverCacheValue]
27 sf singleflight.Group
28 posTTL time.Duration
29 negTTL time.Duration
30 timeout time.Duration
31}
32
33func NewCachingResolver(next Resolver, posTTL, negTTL, timeout time.Duration) *CachingResolver {
34 return &CachingResolver{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected