]> git.lizzy.rs Git - go-anidb.git/blobdiff - misc.go
anidb: New caching mechanism
[go-anidb.git] / misc.go
diff --git a/misc.go b/misc.go
index ad8c51740516d52359c3f5e949288528dd7bcdeb..f738d2883541b42221a10c45c06bef28e8cbd90f 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -15,6 +15,8 @@ var (
        GroupCacheDuration   = 4 * DefaultCacheDuration // They don't change that often.
        FileCacheDuration    = 8 * DefaultCacheDuration // These change even less often.
 
+       InvalidKeyCacheDuration = 1 * time.Hour
+
        // Used when the UDP API Anime query fails, but the HTTP API query succeeds.
        AnimeIncompleteCacheDuration = 24 * time.Hour