Uploaded image for project: 'Spring Data Geode'
  1. Spring Data Geode
  2. DATAGEODE-265

Improve GemfireCache.clear() to take GemFire Cache and Region type into consideration

    XMLWordPrintable

    Details

      Description

      Currently, when a developer uses Spring's Cache Abstraction with Apache Geode 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:
            Jens Deppe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: