Skip to content

Commit

Permalink
tweak cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 18, 2024
1 parent 9baf704 commit 0b214ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/clas/src/main/ClasMatesCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class ClasMatesCache(colls: ClasColls, cacheApi: CacheApi, studentCache: C
def get(studentId: UserId): Fu[Set[UserId]] =
studentCache.isStudent(studentId).so(cache.get(studentId))

private val cache = cacheApi[UserId, Set[UserId]](256, "clas.mates"):
private val cache = cacheApi[UserId, Set[UserId]](64, "clas.mates"):
_.expireAfterWrite(5 minutes)
.buildAsyncFuture(fetchMatesAndTeachers)

Expand Down

0 comments on commit 0b214ed

Please sign in to comment.