类 CompositeCacheManager

    • 构造器详细资料

      • CompositeCacheManager

        public CompositeCacheManager​(CacheManager... cacheManagers)
        Construct a CompositeCacheManager from the given delegate CacheManagers.
        参数:
        cacheManagers - the CacheManagers to delegate to
    • 方法详细资料

      • setFallbackToNoOpCache

        public void setFallbackToNoOpCache​(boolean fallbackToNoOpCache)
        Indicate whether a NoOpCacheManager should be added at the end of the delegate list. In this case, any getCache requests not handled by the configured CacheManagers will be automatically handled by the NoOpCacheManager (and hence never return null).
      • afterPropertiesSet

        public void afterPropertiesSet()
        从接口复制的说明: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        指定者:
        afterPropertiesSet 在接口中 InitializingBean
      • getCache

        public Cache getCache​(String name)
        从接口复制的说明: CacheManager
        Get the cache associated with the given name.

        Note that the cache may be lazily created at runtime if the native provider supports it.

        指定者:
        getCache 在接口中 CacheManager
        参数:
        name - the cache identifier (must not be null)
        返回:
        the associated cache, or null if such a cache does not exist or could be not created