The cache must remove/evict writers after a few seconds, but EhCache only evicts entries when a new entry is added. That is not acceptable for us, because that would leave lots of files open and we would need a second mechanism to close them. Therefore I write a simple wrapper for a ConcurrentHashMap that evicts entries after timeToLive+5s.
13 lines
408 B
Groovy
13 lines
408 B
Groovy
|
|
dependencies {
|
|
compile project(':pdb-api')
|
|
compile project(':data-store')
|
|
compile project(':file-utils')
|
|
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
|
|
compile 'org.apache.commons:commons-collections4:4.2'
|
|
|
|
compile 'org.apache.logging.log4j:log4j-api:2.10.0'
|
|
compile 'org.apache.logging.log4j:log4j-core:2.10.0'
|
|
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0'
|
|
}
|