Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-557

Enhance GemfireCache.clear() to take GemFire Cache and Region type into account

    XMLWordPrintable

    Details

    • Sprint:
      Kay RC1, Kay RC3, Kay GA, Kay SR1, Lovelace M1, Lovelace M2 / M3, Lovelace RC1, Lovelace GA, Lovelace SR1, Moore RC1, Moore RC2, Moore SR1, Moore SR2, Neumann M3, Neumann M4, Neumann RC1, 2020.0.0 - Ockham M1, 2020.0.0 - Ockham RC2, 2021.0.0 - Pascal M1

      Description

      Currently, when a developer uses Spring's Cache Abstraction with Pivotal GemFire as the "caching provider", to enable caching in his/her @Service components, if the developer includes a @Service method to evict all entries, like so...

      @CacheEvict(cacheNames="...", allEntries=true)
      public void wipeCaches() {
        logger.info("Wiped all Caches");
        ...
      }
      

      SDG's current implementation of Cache.clear() will fail with an UnsupportedOperationException on a PARTITION Region. This is because Map.clear() is not supported on PARTITION Regions.

      Additionally, clear() would not work if the Region is a client Region.

      This JIRA was created to add more intelligence to SDG's GemfireCache.clear() operation.

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            jblum John Blum
            Last updater:
            Christoph Strobl
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 16m
                16m
                Remaining:
                Remaining Estimate - 16m
                16m
                Logged:
                Time Spent - Not Specified
                Not Specified