lib/workingsetcache: increase default cache expiration from 10 minutes to 20 minutes

This increases the maximum time for cache population with new entries from 20 minutes to 40 minutes.
This

This change shouldn't increase memory usage for caches, since the prev cache cleaner
should free up memory by deleting unused prev cache as soon as possible.
See 08ca45d238 for details on prev cache cleaner.
This commit is contained in:
Aliaksandr Valialkin 2022-10-20 21:48:23 +03:00
parent 08ca45d238
commit 891ff6af2a
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -17,7 +17,7 @@ const (
whole = 2
)
const defaultExpireDuration = 10 * time.Minute
const defaultExpireDuration = 20 * time.Minute
// Cache is a cache for working set entries.
//