Modify time to live to 6 hours
This commit is contained in:
@@ -23,7 +23,7 @@ const fetchCache = new FetchCache({
|
|||||||
maximalItemCount: 10000,
|
maximalItemCount: 10000,
|
||||||
// When should the cache evict responses when its full?
|
// When should the cache evict responses when its full?
|
||||||
evictExceedingItemsBy: 'age', // Valid values: 'lru' or 'age'
|
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
|
// ...see https://github.com/sozialhelden/hamster-cache for all possible options
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user