Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 9.2.0.Alpha2
    • Component/s: None
    • Labels:
      None

      Description

      We need a way to run a command for all data in the cache (while under a lock) but also return a value for the data processed.

      There are a few different APIs we could do for this having a Cache<K, V>

      blocking variant

      <R> Map<K, R> evalAll(BiFunction<Cache<K, V>, ? super CacheEntry<K, V>, R> biFunction)
      

      back pressure aware variant - this would have to be a hot observer on subscribe

      <R> Publisher<R> evalAll(BiFunction<Cache<K, V>, ? super CacheEntry<K, V> R> biFunction)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                william.burns William Burns
                Reporter:
                william.burns William Burns
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: