X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=misc.go;h=b74f1c9e02b91ea5057013415240f466db362f18;hb=909b4836ad2d5c4730dff54b1f0dfa951fa6252e;hp=ad8c51740516d52359c3f5e949288528dd7bcdeb;hpb=2c1ef9d904daf8108f4e9ac2de8264b6a558b3d9;p=go-anidb.git diff --git a/misc.go b/misc.go index ad8c517..b74f1c9 100644 --- a/misc.go +++ b/misc.go @@ -15,6 +15,20 @@ var ( GroupCacheDuration = 4 * DefaultCacheDuration // They don't change that often. FileCacheDuration = 8 * DefaultCacheDuration // These change even less often. + MyListCacheDuration = 12 * time.Hour // When the file isn't watched + MyListWatchedCacheDuration = 2 * DefaultCacheDuration // When the file is watched + + LIDCacheDuration = 4 * DefaultCacheDuration + + UIDCacheDuration = 16 * DefaultCacheDuration // Can these even be changed? + + // Used for anime that have already finished airing. + // It's unlikely that they get any important updates. + FinishedAnimeCacheDuration = 4 * AnimeCacheDuration + + // Used when a request uses a non-existing key (AID, ed2k+size, etc) + InvalidKeyCacheDuration = 1 * time.Hour + // Used when the UDP API Anime query fails, but the HTTP API query succeeds. AnimeIncompleteCacheDuration = 24 * time.Hour