This is used to cache the results of dump and search requests for 60s. Once the timeout has passed the request is repeated and the timeout reset. The timeout is *not* reset on every cache hit which prevents, for example, a request every 59 seconds from keeping the cache from updating. When the existing CleanCache() function is called to check the on-disk metadata cache it will also delete any expired entries from the resultCache in order to keep it from eventually consuming all memory. |
||
|---|---|---|
| .. | ||
| cache.go | ||
| cache_test.go | ||
| dnfjson.go | ||
| dnfjson_test.go | ||