接口的使用
org.springframework.cache.interceptor.KeyGenerator
使用KeyGenerator的程序包 程序包 说明 org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.cache.annotation中KeyGenerator的使用
类型参数类型为KeyGenerator的org.springframework.cache.annotation中的字段 修饰符和类型 字段 说明 protected Supplier<KeyGenerator>AbstractCachingConfiguration. keyGenerator返回KeyGenerator的org.springframework.cache.annotation中的方法 修饰符和类型 方法 说明 KeyGeneratorCachingConfigurer. keyGenerator()Return the key generator bean to use for annotation-driven cache management.KeyGeneratorCachingConfigurerSupport. keyGenerator()org.springframework.cache.interceptor中KeyGenerator的使用
实现KeyGenerator的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 classSimpleKeyGeneratorSimple key generator.返回KeyGenerator的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 KeyGeneratorCacheAspectSupport. getKeyGenerator()Return the defaultKeyGeneratorthat this cache aspect delegates to.参数类型为KeyGenerator的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 voidCacheAspectSupport. setKeyGenerator(KeyGenerator keyGenerator)Set the defaultKeyGeneratorthat this cache aspect should delegate to if no specific key generator has been set for the operation.voidCacheProxyFactoryBean. setKeyGenerator(KeyGenerator keyGenerator)Set the defaultKeyGeneratorthat this cache aspect should delegate to if no specific key generator has been set for the operation.参数类型为KeyGenerator的org.springframework.cache.interceptor中的构造器 构造器 说明 CacheOperationMetadata(CacheOperation operation, Method method, Class<?> targetClass, KeyGenerator keyGenerator, CacheResolver cacheResolver)org.springframework.cache.jcache.interceptor中KeyGenerator的使用
返回KeyGenerator的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 protected KeyGeneratorAnnotationJCacheOperationSource. determineKeyGenerator(javax.cache.annotation.CacheDefaults defaults, Class<? extends javax.cache.annotation.CacheKeyGenerator> candidate)protected abstract KeyGeneratorAnnotationJCacheOperationSource. getDefaultKeyGenerator()Return the defaultKeyGeneratorif none is set.protected KeyGeneratorDefaultJCacheOperationSource. getDefaultKeyGenerator()KeyGeneratorDefaultJCacheOperationSource. getKeyGenerator()Return the specified key generator to use.参数类型为KeyGenerator的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 voidDefaultJCacheOperationSource. setKeyGenerator(KeyGenerator keyGenerator)Set the defaultKeyGenerator.