Skip to content

Commit 16dfb39

Browse files
committed
Increase cache capacity
1 parent ead213c commit 16dfb39

File tree

1 file changed

+2
-1
lines changed
  • webknossos-datastore/app/com/scalableminds/webknossos/datastore/services

1 file changed

+2
-1
lines changed

webknossos-datastore/app/com/scalableminds/webknossos/datastore/services/DatasetCache.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class DatasetCache @Inject()(remoteWebknossosClient: DSRemoteWebknossosClient,
1616
extends FoxImplicits {
1717

1818
lazy val cache: AlfuCache[ObjectId, DataSource] = AlfuCache[ObjectId, DataSource](
19-
timeToLive = 1 day // Cache for a longer time, since we invalidate the cache manually
19+
timeToLive = 1 day, // Cache for a longer time, since we invalidate the cache manually
20+
maxCapacity = 5000
2021
)
2122

2223
def getById(id: ObjectId): Fox[DataSource] =

0 commit comments

Comments
 (0)