Skip to content

Commit

Permalink
Scala 2.12 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoworko committed Dec 13, 2024
1 parent a380f15 commit a50b53e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ class PeriodicProcessesRepositoryCachingDecorator(
private val activeSchedulesCache: AsyncCache[Int, Map[ProcessName, SchedulesState]] =
Caffeine
.newBuilder()
.asInstanceOf[Caffeine[Int, Map[ProcessName, SchedulesState]]]
.expireAfterWrite(java.time.Duration.ofMillis(cacheTTL.toMillis))
.buildAsync[Int, Map[ProcessName, SchedulesState]]

private val inactiveSchedulesCache: AsyncCache[(Int, Int), Map[ProcessName, SchedulesState]] =
Caffeine
.newBuilder()
.asInstanceOf[Caffeine[(Int, Int), Map[ProcessName, SchedulesState]]]
.expireAfterWrite(java.time.Duration.ofMillis(cacheTTL.toMillis))
.buildAsync[(Int, Int), Map[ProcessName, SchedulesState]]

Expand Down

0 comments on commit a50b53e

Please sign in to comment.