| 166 | type ShouldCacheFn func(r tripperware.Request) bool |
| 167 | |
| 168 | type resultsCache struct { |
| 169 | logger log.Logger |
| 170 | cfg ResultsCacheConfig |
| 171 | next tripperware.Handler |
| 172 | cache cache.Cache |
| 173 | limits tripperware.Limits |
| 174 | splitter CacheSplitter |
| 175 | |
| 176 | extractor Extractor |
| 177 | minCacheExtent int64 // discard any cache extent smaller than this |
| 178 | merger tripperware.Merger |
| 179 | shouldCache ShouldCacheFn |
| 180 | cacheQueryableSamplesStats bool |
| 181 | } |
| 182 | |
| 183 | // NewResultsCacheMiddleware creates results cache middleware from config. |
| 184 | // The middleware cache result using a unique cache key for a given request (step,query,user) and interval. |
nothing calls this directly
no outgoing calls
no test coverage detected