mirror of https://github.com/status-im/consul.git
89f41bddfe
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. |
||
---|---|---|
.. | ||
cache.go | ||
cache_test.go | ||
entry.go | ||
entry_test.go | ||
mock_Request.go | ||
mock_Type.go | ||
request.go | ||
testing.go | ||
type.go | ||
watch.go | ||
watch_test.go |