forked from osbuild/osbuild-composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters