debian-forge-composer/internal/dnfjson
Brian C. Lane 9827126d30 dnfjson: Add dnf-json result cache to BaseSolver
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.
2022-09-15 11:34:39 +01:00
..
cache.go dnfjson: Add a cache of dnf-json results 2022-09-15 11:34:39 +01:00
cache_test.go dnfjson: Add a cache of dnf-json results 2022-09-15 11:34:39 +01:00
dnfjson.go dnfjson: Add dnf-json result cache to BaseSolver 2022-09-15 11:34:39 +01:00
dnfjson_test.go dnfjson: Add Hash functions to repoConfig and Request 2022-09-15 11:34:39 +01:00