Utils
  1. Utils
  2. UTILS-16

CachedObject gets out of sync when multiple CachedObjects share the same cache

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.8
    • Labels:
      None
    • Environment:
      all

      Description

      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.

        Activity

        Hide
        Erik Brakkee added a comment -
        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.
        Show
        Erik Brakkee added a comment - 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.

          People

          • Assignee:
            Erik Brakkee
            Reporter:
            Erik Brakkee
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: