Skip to main content

Module cache

Module cache 

Source

Structs§

CacheEntry
A cached update check result.

Functions§

clear_cache
Delete the cache file for the given app. Ignores “not found” errors.
create_cache_entry
Create a new CacheEntry with the current timestamp.
is_cache_stale
Check if a cache entry is stale based on the given interval (in milliseconds).
read_cache
Read the cached update check for the given app. Returns None on any error (missing file, invalid JSON, etc.).
write_cache
Write a cache entry atomically (temp file + rename). Creates directories if needed.