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

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, CachePut or CacheEvict.
no setteroverride
cacheManager → String?
Name of the CacheManager bean; null for the default one.
finalinherited
cacheNames → List<String>
The cache names of the annotation, or of @CacheConfig when it named none; may be empty when a CacheResolver picks the caches.
finalinherited
cacheResolver → String?
Name of the CacheResolver bean; null for the default one.
finalinherited
condition → String?
SpEL deciding whether the operation applies to a call; null means 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; null when the key generator computes it.
finalinherited
keyGenerator → String?
Name of the KeyGenerator bean; null for 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 Future method 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 is true, 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