tweak rating chart cache strategy

crosstable3
Thibault Duplessis 2021-09-18 10:49:04 +02:00
parent c3e5b3c899
commit 95b223294a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ final class RatingChartApi(
} map JsArray.apply
private val cache = cacheApi[User.ID, String](4096, "history.rating") {
_.expireAfterAccess(10 minutes)
_.expireAfterWrite(10 minutes)
.maximumSize(4096)
.buildAsyncFuture { userId =>
build(userId).dmap(~_)