Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-8696

Introduce qualifier in @Cacheable for cache manager name

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.1 M2
    • Fix Version/s: 4.1 RC1
    • Component/s: Caching

      Description

      A qualifier attribute on @Cacheable would help to specify a CacheManager in the scenario described in the referenced forum post and summarized here:

      Two modules define their own CacheManager and use @Cacheable together with <cache:annotation-driven cache-manager="some_name"/> in their respective XML configuration files.

      When the XML configuration files from the two modules are used to build a single ApplicationContext, the second CacheManager is ignored as only one cache interceptor is registered by the namespace.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                snicoll Stéphane Nicoll
                Reporter:
                gpitteloud Gaetan Pitteloud
                Last updater:
                Stéphane Nicoll
              • Votes:
                10 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 4 weeks, 2 days ago