类 CachingConfigurerSupport

    • 方法详细资料

      • cacheManager

        @Nullable
        public CacheManager cacheManager()
        从接口复制的说明: CachingConfigurer
        Return the cache manager bean to use for annotation-driven cache management. A default CacheResolver will be initialized behind the scenes with this cache manager. For more fine-grained management of the cache resolution, consider setting the CacheResolver directly.

        Implementations must explicitly declare @Bean, e.g.

         @Configuration
         @EnableCaching
         public class AppConfig extends CachingConfigurerSupport {
             @Bean // important!
             @Override
             public CacheManager cacheManager() {
                 // configure and return CacheManager instance
             }
             // ...
         }
         
        See @EnableCaching for more complete examples.
        指定者:
        cacheManager 在接口中 CachingConfigurer
      • keyGenerator

        @Nullable
        public KeyGenerator keyGenerator()
        从接口复制的说明: CachingConfigurer
        Return the key generator bean to use for annotation-driven cache management. Implementations must explicitly declare @Bean, e.g.
         @Configuration
         @EnableCaching
         public class AppConfig extends CachingConfigurerSupport {
             @Bean // important!
             @Override
             public KeyGenerator keyGenerator() {
                 // configure and return KeyGenerator instance
             }
             // ...
         }
         
        See @EnableCaching for more complete examples.
        指定者:
        keyGenerator 在接口中 CachingConfigurer