• Task
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • hsingh
  • Reporter: amiller
  • December 09, 2009
  • 0
  • Watchers: 0
  • January 17, 2013
  • January 26, 2010

Description

Currently, when a cache is disabled in Ehcache, puts are dropped but gets return as normal which seems weird. In meeting of Dec 2, ‘09 we decided get()s should return null when cache is disabled instead.

Comments

Chris Dennis 2009-12-18

This is pretty much done as part of the dynamic configuration changes. The only remaining element is to guard against enable/disable when a key is locked when running as a hibernate cache, there is a solution for the same problem in tim-hibernate-cache which needs to be pulled across into the Ehcache hibernate cache provider as part of my work on that.

Himadri Singh 2010-02-22

Verified in rev 1916

Disabled caches return null on get()