open-consul/agent/cache
Daniel Nephin fb31212de7 Remove TTL from cacheEntryExpiry
This should very slightly reduce the amount of memory required to store each item in
the cache.

It will also enable setting different TTLs based on the type of result. For example
we may want to use a shorter TTL when the result indicates the resource does not exist,
as storing these types of records could easily lead to a DOS caused by
OOM.
2020-04-13 13:10:38 -04:00
..
cache.go Remove TTL from cacheEntryExpiry 2020-04-13 13:10:38 -04:00
cache_test.go avoid 'panic: Log in goroutine after TestCacheGet_refreshAge has completed' (#7276) 2020-02-12 10:01:51 -06:00
entry.go Remove TTL from cacheEntryExpiry 2020-04-13 13:10:38 -04:00
entry_test.go
mock_Request.go
mock_Type.go
request.go
testing.go
type.go
watch.go agent/cache: Reduce differences between notify implementations 2020-04-13 13:10:38 -04:00
watch_test.go tests: more tolerance to latency for unstable test TestCacheNotifyPolling(). (#7574) 2020-04-03 10:29:38 +02:00