• Bug
  • Status: New
  • 2 Major
  • Resolution:
  • ehcache-jcache
  • drb
  • Reporter: jgasda
  • August 26, 2015
  • 0
  • Watchers: 2
  • August 26, 2015

Attachments

Description

When using org.ehcache.jcache.JCache.put(KEY, VALUE) with a key that already exists the cached object will never be evicted.

Test is attached.

Comments

Jürgen Gasda 2015-08-26

It seems that the second put is internally handled as an update. In this case the CreatedExpiryPolicy will set no timeToLive or timeToIdle -> which means caching eternal.