ehcache / ehcache-jcache

The Ehcache 2.x implementation of JSR107 (JCACHE)
Other
91 stars 48 forks source link

ehcache 2.5.0 replace(element, element) method broke - worked around #4

Closed ryangardner closed 10 years ago

ryangardner commented 12 years ago

Reported here:

https://jira.terracotta.org/jira/browse/EHC-894

There is a workaround in place in the implementation that does a get and then a put.

I can't force the underlying cache to lock on the key when I do the get, so another thread could potentially put something in before I replaced the value in the workaround case (in other words, it's best if the underlying method gets fixed in ehcache)