Uses of Class
org.springframework.cache.interceptor.CacheOperation
Package
Description
Annotations and supporting classes for declarative cache management.
AOP-based solution for declarative caching demarcation.
-
Uses of CacheOperation in org.springframework.cache.annotation
Modifier and TypeMethodDescriptionprotected @Nullable Collection<CacheOperation>
AnnotationCacheOperationSource.determineCacheOperations
(AnnotationCacheOperationSource.CacheOperationProvider provider) Determine the cache operation(s) for the givenAnnotationCacheOperationSource.CacheOperationProvider
.protected @Nullable Collection<CacheOperation>
AnnotationCacheOperationSource.findCacheOperations
(Class<?> clazz) protected @Nullable Collection<CacheOperation>
AnnotationCacheOperationSource.findCacheOperations
(Method method) AnnotationCacheOperationSource.CacheOperationProvider.getCacheOperations
(CacheAnnotationParser parser) Return theCacheOperation
instance(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.SpringCacheAnnotationParser.parseCacheAnnotations
(Class<?> type) SpringCacheAnnotationParser.parseCacheAnnotations
(Method method) -
Uses of CacheOperation in org.springframework.cache.interceptor
Modifier and TypeClassDescriptionclass
Class describing a cache 'cacheable' operation.class
Class describing a cache 'evict' operation.class
Class describing a cache 'put' operation.Modifier and TypeMethodDescriptionabstract CacheOperation
CacheOperation.Builder.build()
CacheAspectSupport.CacheOperationContext.getOperation()
Modifier and TypeMethodDescriptionprotected abstract @Nullable Collection<CacheOperation>
AbstractFallbackCacheOperationSource.findCacheOperations
(Class<?> clazz) Subclasses need to implement this to return the cache operations for the given class, if any.protected abstract @Nullable Collection<CacheOperation>
AbstractFallbackCacheOperationSource.findCacheOperations
(Method method) Subclasses need to implement this to return the cache operations for the given method, if any.AbstractFallbackCacheOperationSource.getCacheOperations
(Method method, @Nullable Class<?> targetClass) CacheOperationSource.getCacheOperations
(Method method, @Nullable Class<?> targetClass) Return the collection of cache operations for this method, ornull
if the method contains no cacheable annotations.CompositeCacheOperationSource.getCacheOperations
(Method method, @Nullable Class<?> targetClass) NameMatchCacheOperationSource.getCacheOperations
(Method method, @Nullable Class<?> targetClass) Modifier and TypeMethodDescriptionCacheAspectSupport.getCacheOperationMetadata
(CacheOperation operation, Method method, Class<?> targetClass) Return theCacheAspectSupport.CacheOperationMetadata
for the specified operation.protected CacheAspectSupport.CacheOperationContext
CacheAspectSupport.getOperationContext
(CacheOperation operation, Method method, @Nullable Object[] args, Object target, Class<?> targetClass) Modifier and TypeMethodDescriptionvoid
NameMatchCacheOperationSource.addCacheMethod
(String methodName, Collection<CacheOperation> ops) Add an attribute for a cacheable method.protected Collection<? extends Cache>
CacheAspectSupport.getCaches
(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) void
NameMatchCacheOperationSource.setNameMap
(Map<String, Collection<CacheOperation>> nameMap) Set a name/attribute map, consisting of method names (for example, "myMethod") and CacheOperation instances (or Strings to be converted to CacheOperation instances).ModifierConstructorDescriptionCacheOperationMetadata
(CacheOperation operation, Method method, Class<?> targetClass, KeyGenerator keyGenerator, CacheResolver cacheResolver)