Class CacheAspectSupport.CacheOperationContext
java.lang.Object
org.springframework.cache.interceptor.CacheAspectSupport.CacheOperationContext
- All Implemented Interfaces:
- CacheOperationInvocationContext<CacheOperation>
- Enclosing class:
- CacheAspectSupport
protected class CacheAspectSupport.CacheOperationContext
extends Object
implements CacheOperationInvocationContext<CacheOperation>
A 
CacheOperationInvocationContext context for a CacheOperation.- 
Constructor SummaryConstructorsConstructorDescriptionCacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata, @Nullable Object[] args, Object target) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanPutToCache(@Nullable Object value) generateKey(@Nullable Object result) Compute the key for the given caching operation.getArgs()Return the argument list used to invoke the method.protected Collection<String>protected Collection<? extends Cache>Get generated key.Return the method which was invoked.Return the cache operation.Return the target instance on which the method was invoked.protected booleanisConditionPassing(@Nullable Object result) 
- 
Constructor Details- 
CacheOperationContextpublic CacheOperationContext(CacheAspectSupport.CacheOperationMetadata metadata, @Nullable Object[] args, Object target) 
 
- 
- 
Method Details- 
getOperationDescription copied from interface:CacheOperationInvocationContextReturn the cache operation.- Specified by:
- getOperationin interface- CacheOperationInvocationContext<CacheOperation>
 
- 
getTargetDescription copied from interface:CacheOperationInvocationContextReturn the target instance on which the method was invoked.- Specified by:
- getTargetin interface- CacheOperationInvocationContext<CacheOperation>
 
- 
getMethodDescription copied from interface:CacheOperationInvocationContextReturn the method which was invoked.- Specified by:
- getMethodin interface- CacheOperationInvocationContext<CacheOperation>
 
- 
getArgsDescription copied from interface:CacheOperationInvocationContextReturn the argument list used to invoke the method.- Specified by:
- getArgsin interface- CacheOperationInvocationContext<CacheOperation>
 
- 
isConditionPassing
- 
canPutToCache
- 
generateKeyCompute the key for the given caching operation.
- 
getGeneratedKeyGet generated key.- Returns:
- generated key
- Since:
- 6.1.2
 
- 
getCaches
- 
getCacheNames
 
-