Class CacheOperation
java.lang.Object
org.springframework.cache.interceptor.CacheOperation
- All Implemented Interfaces:
- BasicOperation
- Direct Known Subclasses:
- CacheableOperation,- CacheEvictOperation,- CachePutOperation
Base class for cache operations.
- Since:
- 3.1
- Author:
- Costin Leau, Stephane Nicoll, Marcin Kamionowski
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBase class for builders that can be used to create aCacheOperation.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreate a newCacheOperationinstance from the given builder.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThis implementation compares thetoString()results.Return the cache name(s) associated with the operation.getKey()getName()inthashCode()This implementation returnstoString()'s hash code.final StringtoString()Return an identifying description for this cache operation.
- 
Constructor Details- 
CacheOperationCreate a newCacheOperationinstance from the given builder.- Since:
- 4.3
 
 
- 
- 
Method Details- 
getName
- 
getCacheNamesDescription copied from interface:BasicOperationReturn the cache name(s) associated with the operation.- Specified by:
- getCacheNamesin interface- BasicOperation
 
- 
getKey
- 
getKeyGenerator
- 
getCacheManager
- 
getCacheResolver
- 
getCondition
- 
equalsThis implementation compares thetoString()results.
- 
hashCodepublic int hashCode()This implementation returnstoString()'s hash code.
- 
toStringReturn an identifying description for this cache operation.Returned value is produced by calling CacheOperation.Builder.getOperationDescription()during object construction. This method is used inhashCode()andequals(java.lang.Object).
 
-