Modify time to live to 6 hours

This commit is contained in:
Senad Uka
2020-10-21 10:49:22 +02:00
parent 92e4f4ed5a
commit 14039975c2

View File

@@ -23,7 +23,7 @@ const fetchCache = new FetchCache({
maximalItemCount: 10000,
// When should the cache evict responses when its full?
evictExceedingItemsBy: 'age', // Valid values: 'lru' or 'age'
defaultTTL: 10 * 60 * 1000 // 10 minutes
defaultTTL: 6 * 60 * 60 * 1000 // 6 hours
// ...see https://github.com/sozialhelden/hamster-cache for all possible options
},
});