feat: add cache get
All checks were successful
continuous-integration/drone/push Build is passing

This now introduces the `settings.cache.duration` key, which can either be false, true (default)

or a map `{days, hours, minutes}` for how long the cache should last. If the cache is expired an eager load of the repositories will be executed

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-09-14 21:17:20 +02:00
parent 0c8cf7211c
commit e4d5d5302e
5 changed files with 106 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ impl RootCommand {
};
for repo in &repositories {
tracing::info!("repo: {}", repo.to_rel_path().display());
//tracing::info!("repo: {}", repo.to_rel_path().display());
}
tracing::info!("amount of repos fetched {}", repositories.len());