类 NamedCacheResolver

java.lang.Object
cn.taketoday.cache.interceptor.AbstractCacheResolver
cn.taketoday.cache.interceptor.NamedCacheResolver
所有已实现的接口:
InitializingBean, CacheResolver

public class NamedCacheResolver extends AbstractCacheResolver
A CacheResolver that forces the resolution to a configurable collection of name(s) against a given CacheManager.
从以下版本开始:
4.0
作者:
Stephane Nicoll
  • 构造器详细资料

    • NamedCacheResolver

      public NamedCacheResolver()
    • NamedCacheResolver

      public NamedCacheResolver(CacheManager cacheManager, String... cacheNames)
  • 方法详细资料

    • setCacheNames

      public void setCacheNames(Collection<String> cacheNames)
      Set the cache name(s) that this resolver should use.
    • getCacheNames

      protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)
      从类复制的说明: AbstractCacheResolver
      Provide the name of the cache(s) to resolve against the current cache manager.

      It is acceptable to return null to indicate that no cache could be resolved for this invocation.

      指定者:
      getCacheNames 在类中 AbstractCacheResolver
      参数:
      context - the context of the particular invocation
      返回:
      the cache name(s) to resolve, or null if no cache should be resolved