// NewRoutingInfoCache wraps the provided cache with a typed API and metrics.
func NewRoutingInfoCache(c cache.Cache, metricsHandler metrics.Handler) RoutingInfoCache {
routing_info_cache.go
h := metricsHandler.WithTags(metrics.CacheTypeTag(metrics.RoutingInfoCacheTypeTagValue))
return &RoutingInfoCacheImpl{
Cache: c,
metricsHandler: h,
}
}
func (c *RoutingInfoCacheImpl) Get(