CacheableOperation class final
The operation of a @Cacheable annotation: look the key up, and on a
miss run the method and store the result.
Spring (Java): CacheableOperation.
- Inheritance
-
- Object
- CacheOperation
- CacheableOperation
Constructors
-
CacheableOperation({required String name, required List<
String> cacheNames, String? key, String? keyGenerator, String? cacheManager, String? cacheResolver, String? condition, String? unless, bool sync = false}) -
The operation of the method
name(Class.member); the framework builds it from the annotation.
Properties
- annotation → String
-
The annotation's name without
@:Cacheable,CachePutorCacheEvict.no setteroverride - cacheManager → String?
-
Name of the
CacheManagerbean;nullfor the default one.finalinherited -
cacheNames
→ List<
String> -
The cache names of the annotation, or of
@CacheConfigwhen it named none; may be empty when aCacheResolverpicks the caches.finalinherited - cacheResolver → String?
-
Name of the
CacheResolverbean;nullfor the default one.finalinherited - condition → String?
-
SpEL deciding whether the operation applies to a call;
nullmeans always.finalinherited - description → String
-
The operation in words, such as
@Cacheable on Books.find, as error messages name it.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- key → String?
-
The SpEL expression computing the key;
nullwhen the key generator computes it.finalinherited - keyGenerator → String?
-
Name of the
KeyGeneratorbean;nullfor the default one.finalinherited - name → String
-
The annotated method, written
Class.member(Books.find).finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sync → bool
-
Whether calls of a
Futuremethod with the same key that overlap in time share one call of the method.final - unless → String?
-
SpEL with the result as
#result: when it istrue, the result is not stored.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited