Skip to content

Commit

Permalink
tweak cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 24, 2024
1 parent e5aac1b commit eba535b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/study/src/main/StudyChapterPreview.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class ChapterPreviewApi(

object dataList:
private[ChapterPreviewApi] val cache =
cacheApi[StudyId, List[ChapterPreview]](256, "study.chapterPreview.data"):
cacheApi[StudyId, List[ChapterPreview]](512, "study.chapterPreview.data"):
_.expireAfterWrite(1 minute).buildAsyncFuture(listAll)

def apply(studyId: StudyId): Fu[List[ChapterPreview]] = cache.get(studyId)
Expand Down

0 comments on commit eba535b

Please sign in to comment.