Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1277

Force refresh of cached config values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • Configuration
    • None

    Description

      When using a TypedResolver or UntypedResolver with caching enabled, there is no way of bypassing the cache and forcefully reloading the value from underlying datasources.

      The attached patch is a proposal of creating such an mechanism. It introduces a void forceRefresh() method to the TypedResolver, implements this method by resetting the reloadAfter field and adds a unit test.

      Attachments

        1. central_caching.patch
          7 kB
          Alexander Falb
        2. forcerefresh.patch
          3 kB
          Alexander Falb

        Activity

          People

            struberg Mark Struberg
            elexx Alexander Falb
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: