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.
408 B
408 B