Skip to content

Commit

Permalink
reduce verbose logging when creating cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zingmane committed Oct 23, 2023
1 parent c361c1b commit 9c97ade
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,13 @@ class CacheVerticle extends ScalaVerticle with LazyLogging {
private def getCache(tableId: TableId, columnId: ColumnId): Cache[AnyRef] = {

def createCache() = {
val builder = CacheBuilder
.newBuilder()
val builder = CacheBuilder.newBuilder()

val expireAfterAccess = config.getLong("expireAfterAccess", DEFAULT_EXPIRE_AFTER_ACCESS).toLong
if (expireAfterAccess > 0) {
builder.expireAfterAccess(expireAfterAccess, TimeUnit.SECONDS)
} else {
logger.info("Cache will not expire!")
logger.debug("Cache will not expire!")
}

val maximumSize = config.getLong("maximumSize", DEFAULT_MAXIMUM_SIZE).toLong
Expand Down

0 comments on commit 9c97ade

Please sign in to comment.