From 666561124d6eae4364619a6adf5422d93da1d5a5 Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Tue, 16 Apr 2019 22:48:33 -0600 Subject: [PATCH] server: Allow upto 250,000 headers on the cache --- server/app/com/xsn/explorer/cache/BlockHeaderCache.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/app/com/xsn/explorer/cache/BlockHeaderCache.scala b/server/app/com/xsn/explorer/cache/BlockHeaderCache.scala index 3bfc7b1..323b173 100644 --- a/server/app/com/xsn/explorer/cache/BlockHeaderCache.scala +++ b/server/app/com/xsn/explorer/cache/BlockHeaderCache.scala @@ -1,7 +1,5 @@ package com.xsn.explorer.cache -import java.util.concurrent.TimeUnit - import com.alexitc.playsonify.core.FutureApplicationResult import com.alexitc.playsonify.core.FutureOr.Implicits.FutureOps import com.alexitc.playsonify.models.ordering.OrderingCondition @@ -88,7 +86,7 @@ object BlockHeaderCache { def default: BlockHeaderCache = { val cache = Caffeine.newBuilder() - .expireAfterWrite(30, TimeUnit.MINUTES) + .maximumSize(250000) .build[Key, EncodedValue] new BlockHeaderCache(cache)