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 9a52b56b89
commit 4d71023eb9
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

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