org.springframework.cache.annotation

## 类 CachingConfigurerSupport

- java.lang.Object
- - org.springframework.cache.annotation.CachingConfigurerSupport

- 所有已实现的接口:
    CachingConfigurer

      public class CachingConfigurerSupport
      extends Object
      implements CachingConfigurer

  An implementation of `CachingConfigurer` with empty methods allowing sub-classes to override only the methods they're interested in.
  从以下版本开始:
    4.1
  作者:
    Stephane Nicoll
  另请参阅:
    `CachingConfigurer`

- - ### 构造器概要

    构造器
    构造器和说明
    `CachingConfigurerSupport()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `CacheManager` | `cacheManager()` Return the cache manager bean to use for annotation-driven cache management.
    `CacheResolver` | `cacheResolver()` Return the `CacheResolver` bean to use to resolve regular caches for annotation-driven cache management.
    `CacheErrorHandler` | `errorHandler()` Return the `CacheErrorHandler` to use to handle cache-related errors.
    `KeyGenerator` | `keyGenerator()` Return the key generator bean to use for annotation-driven cache management.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### CachingConfigurerSupport

          public 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`

    - #### cacheResolver

          @Nullable
          public CacheResolver cacheResolver()

      从接口复制的说明: `CachingConfigurer`
      Return the `CacheResolver` bean to use to resolve regular caches for annotation-driven cache management. This is an alternative and more powerful option of specifying the `CacheManager` to use.

      If both a `CachingConfigurer.cacheManager()` and `#cacheResolver()` are set, the cache manager is ignored.

      Implementations must explicitly declare `@Bean`, e.g.

           @Configuration
           @EnableCaching
           public class AppConfig extends CachingConfigurerSupport {
               @Bean // important!
               @Override
               public CacheResolver cacheResolver() {
                   // configure and return CacheResolver instance
               }
               // ...
           }

      See `EnableCaching` for more complete examples.
      指定者:
        `cacheResolver` 在接口中 `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`

    - #### errorHandler

          @Nullable
          public CacheErrorHandler errorHandler()

      从接口复制的说明: `CachingConfigurer`
      Return the `CacheErrorHandler` to use to handle cache-related errors.

      By default,`SimpleCacheErrorHandler` is used and simply throws the exception back at the client.

      Implementations must explicitly declare `@Bean`, e.g.

           @Configuration
           @EnableCaching
           public class AppConfig extends CachingConfigurerSupport {
               @Bean // important!
               @Override
               public CacheErrorHandler errorHandler() {
                   // configure and return CacheErrorHandler instance
               }
               // ...
           }

      See @`EnableCaching` for more complete examples.
      指定者:
        `errorHandler` 在接口中 `CachingConfigurer`