类的使用
cn.taketoday.cache.interceptor.CacheOperation
使用CacheOperation的程序包
程序包
说明
Annotations and supporting classes for declarative cache management.
AOP-based solution for declarative caching demarcation.
-
cn.taketoday.cache.annotation中CacheOperation的使用
返回变量类型为CacheOperation的类型的cn.taketoday.cache.annotation中的方法修饰符和类型方法说明protected Collection<CacheOperation>AnnotationCacheOperationSource.determineCacheOperations(AnnotationCacheOperationSource.CacheOperationProvider provider) Determine the cache operation(s) for the givenAnnotationCacheOperationSource.CacheOperationProvider.protected Collection<CacheOperation>AnnotationCacheOperationSource.findCacheOperations(Class<?> clazz) protected Collection<CacheOperation>AnnotationCacheOperationSource.findCacheOperations(Method method) AnnotationCacheOperationSource.CacheOperationProvider.getCacheOperations(CacheAnnotationParser parser) Return theCacheOperationinstance(s) provided by the specified parser.CacheAnnotationParser.parseCacheAnnotations(Class<?> type) Parse the cache definition for the given class, based on an annotation type understood by this parser.CacheAnnotationParser.parseCacheAnnotations(Method method) Parse the cache definition for the given method, based on an annotation type understood by this parser.DefaultCacheAnnotationParser.parseCacheAnnotations(Class<?> type) DefaultCacheAnnotationParser.parseCacheAnnotations(Method method) -
cn.taketoday.cache.interceptor中CacheOperation的使用
修饰符和类型类说明classClass describing a cache 'cacheable' operation.classClass describing a cache 'evict' operation.classClass describing a cache 'put' operation.修饰符和类型方法说明abstract CacheOperationCacheOperation.Builder.build()CacheAspectSupport.CacheOperationContext.getOperation()返回变量类型为CacheOperation的类型的cn.taketoday.cache.interceptor中的方法修饰符和类型方法说明protected abstract Collection<CacheOperation>AbstractFallbackCacheOperationSource.findCacheOperations(Class<?> clazz) Subclasses need to implement this to return the caching attribute for the given class, if any.protected abstract Collection<CacheOperation>AbstractFallbackCacheOperationSource.findCacheOperations(Method method) Subclasses need to implement this to return the caching attribute for the given method, if any.AbstractFallbackCacheOperationSource.getCacheOperations(Method method, Class<?> targetClass) Determine the caching attribute for this method invocation.CacheOperationSource.getCacheOperations(Method method, Class<?> targetClass) Return the collection of cache operations for this method, ornullif the method contains no cacheable annotations.CompositeCacheOperationSource.getCacheOperations(Method method, Class<?> targetClass) NameMatchCacheOperationSource.getCacheOperations(Method method, Class<?> targetClass) 修饰符和类型方法说明CacheAspectSupport.getCacheOperationMetadata(CacheOperation operation, Method method, Class<?> targetClass) Return theCacheAspectSupport.CacheOperationMetadatafor the specified operation.protected CacheAspectSupport.CacheOperationContextCacheAspectSupport.getOperationContext(CacheOperation operation, Method method, Object[] args, Object target, Class<?> targetClass) 类型变量类型为CacheOperation的cn.taketoday.cache.interceptor中的方法参数修饰符和类型方法说明voidNameMatchCacheOperationSource.addCacheMethod(String methodName, Collection<CacheOperation> ops) Add an attribute for a cacheable method.protected Collection<? extends Cache>CacheAspectSupport.getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) voidNameMatchCacheOperationSource.setNameMap(Map<String, Collection<CacheOperation>> nameMap) Set a name/attribute map, consisting of method names (e.g.参数类型为CacheOperation的cn.taketoday.cache.interceptor中的构造器限定符构造器说明CacheOperationMetadata(CacheOperation operation, Method method, Class<?> targetClass, KeyGenerator keyGenerator, CacheResolver cacheResolver)