Skip to content

Commit

Permalink
limit in-memory cache size 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodysnowx committed May 29, 2017
1 parent 3501c4e commit ff0f9c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/com/m3/octoparts/cache/MemoryBufferingRawCache.scala
Expand Up @@ -32,6 +32,7 @@ class MemoryBufferingRawCache(
builder: CacheBuilder[Object, Object]
): CacheBuilder[Object, Object] = {
builder.expireAfterWrite(localCacheDuration.toMillis, TimeUnit.MILLISECONDS)
.maximumSize(10000)
}

def set[T](
Expand Down

0 comments on commit ff0f9c3

Please sign in to comment.