[UTILS-16] CachedObject gets out of sync when multiple CachedObjects share the same cache Created: 26/Sep/13 Updated: 12/Oct/13 Resolved: 12/Oct/13
|Reporter:||Erik Brakkee||Assignee:||Erik Brakkee|
Create two CachedObject instances with the same cache that both represent the same object. Invalidate the first cached object. Now use the second cached object. After that use the first cached object again. Now a null value is returned which is only refreshed after the cache for the entry expires.
|Comment by Erik Brakkee [ 12/Oct/13 ]|
|The cached object now uses the non-null value obtained from the cache instead of the locally cached value in case of a cache hit. The locally cached value is only used when computing the new value fails in case of a cache miss.|