61 static std::vector<std::pair<std::string, std::filesystem::path>>
getVersions();
106 static std::vector<std::pair<std::string, std::filesystem::path>> cachedVersions_;
109 static std::chrono::system_clock::time_point cacheTime_;
112 static std::mutex cacheMutex_;
115 static bool cacheInitialized_;
127 static void updateCache();
135 static bool isCacheExpired();
Thread-safe cache for Proton version scanning results.
static int getCacheAge()
Get cache age in seconds.
static std::vector< std::string > getSortedVersionNames()
Get sorted Proton version names only.
static std::vector< std::pair< std::string, std::filesystem::path > > getVersions()
Get cached Proton versions.
static void invalidate()
Invalidate the cache.
static bool isValid()
Check if cache is currently valid.