diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-07-24 18:34:28 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 18:58:59 -0400 |
commit | edc00ddaab46a2a2d0ba07591a6206159421ef41 (patch) | |
tree | b2bb3705854612153508bddbc92a9e70a55fc0dd /src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs | |
parent | 17c6ae7ed995344111513ca91b18ec6598ec2399 (diff) | |
download | SMAPI-edc00ddaab46a2a2d0ba07591a6206159421ef41.tar.gz SMAPI-edc00ddaab46a2a2d0ba07591a6206159421ef41.tar.bz2 SMAPI-edc00ddaab46a2a2d0ba07591a6206159421ef41.zip |
remove cached mod data not requested within 48 hours (#651)
Diffstat (limited to 'src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs b/src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs index 23929d1d..bcec8b36 100644 --- a/src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs +++ b/src/SMAPI.Web/Framework/Caching/Mods/IModCacheRepository.cs @@ -1,3 +1,4 @@ +using System; using StardewModdingAPI.Toolkit.Framework.UpdateData; using StardewModdingAPI.Web.Framework.ModRepositories; @@ -22,5 +23,9 @@ namespace StardewModdingAPI.Web.Framework.Caching.Mods /// <param name="mod">The mod data.</param> /// <param name="cachedMod">The stored mod record.</param> void SaveMod(ModRepositoryKey site, string id, ModInfoModel mod, out CachedMod cachedMod); + + /// <summary>Delete data for mods which haven't been requested within a given time limit.</summary> + /// <param name="age">The minimum age for which to remove mods.</param> + void RemoveStaleMods(TimeSpan age); } } |