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 summary
Nested ClassesModifier and TypeClassDescriptionstatic class Base class for builders that can be used to create aCacheOperation. -
Constructor summary
ConstructorsModifierConstructorDescriptionprotectedCacheOperation(CacheOperation.Builder b) Create a newCacheOperationinstance from the given builder. -
Method summary
Modifier 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
-
CacheOperation
Create a newCacheOperationinstance from the given builder.- since:
- 4.3
-
-
Method Details
-
getName
-
getCacheNames
Description copied from interface: BasicOperationReturn the cache name(s) associated with the operation.- specified by:
getCacheNames in interface BasicOperation
-
getKey
-
getKeyGenerator
-
getCacheManager
-
getCacheResolver
-
getCondition
-
equals
-
hashCode
-
tostring
Return 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(Object).
-