MCPcopy Index your code
hub / github.com/coder/coder / CacheMetrics

Method CacheMetrics

coderd/aibridged/pool.go:240–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238}
239
240func (p *CachedBridgePool) CacheMetrics() PoolMetrics {
241 if p.cache == nil {
242 return nil
243 }
244
245 return p.cache.Metrics
246}
247
248// Shutdown will close the cache which will trigger eviction of all the Bridge entries.
249func (p *CachedBridgePool) Shutdown(_ context.Context) error {

Callers 2

TestPoolFunction · 0.95
TestPool_ExpiryFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestPoolFunction · 0.76
TestPool_ExpiryFunction · 0.76