jsr107 / RI

Reference Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RICache.EntryProcessorEntry.getValue() impl missing behavior

jfialli opened this issue · comments

javax.cache.Cache.EntryProcessor class javadoc describes following behavior

  • Cache.Entry access, via a call to
  • javax.cache.Cache.Entry#getValue(), will behave as if
  • Cache#get(Object) was called for the key. This includes updating
  • necessary statistics, consulting the configured
  • javax.cache.expiry.ExpiryPolicy and loading from a configured
  • javax.cache.integration.CacheLoader.

Missing functionality that is in RICache.getValue() (which implements Cache.get())

  1. Updating statistics (increase cache hits or cache misses)
  2. The cacheLoader is not getting called if value is null or if it is expired.
  3. the RI cachedValue is not having its expiry time adjust to new calculation via a call to getExpiryForAccessedEntry.