cache evict operation.
This annotation may be used as a meta-annotation to create custom composed annotations with attribute overrides.
CacheConfig
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public String | cacheManager()
The bean name of the custom |
| public String[] | |
| public String | cacheResolver()
The bean name of the custom |
| public String | condition()
Spring Expression Language (SpEL) expression used for making the cache eviction operation conditional. |
| public String | |
| public String | keyGenerator()
The bean name of the custom |
| public String[] |
| allEntries | back to summary |
|---|---|
| public boolean allEntries() Whether all the entries inside the cache(s) are removed. By default, only the value under the associated key is removed. Note that setting this parameter to | |
| beforeInvocation | back to summary |
|---|---|
| public boolean beforeInvocation() Whether the eviction should occur before the method is invoked. Setting this attribute to Defaults to | |
| cacheManager | back to summary |
|---|---|
| public String cacheManager() The bean name of the custom Mutually exclusive with the | |
| cacheNames | back to summary |
|---|---|
| public String[] cacheNames() Names of the caches to use for the cache eviction operation. Names may be used to determine the target cache (or caches), matching the qualifier value or bean name of a specific bean definition.
| |
| cacheResolver | back to summary |
|---|---|
| public String cacheResolver() The bean name of the custom
| |
| condition | back to summary |
|---|---|
| public String condition() Spring Expression Language (SpEL) expression used for making the cache
eviction operation conditional. Evict that cache if the condition evaluates
to Default is The SpEL expression evaluates against a dedicated context that provides the following meta-data:
| |
| key | back to summary |
|---|---|
| public String key() Spring Expression Language (SpEL) expression for computing the key dynamically. Default is The SpEL expression evaluates against a dedicated context that provides the following meta-data:
| |
| keyGenerator | back to summary |
|---|---|
| public String keyGenerator() The bean name of the custom Mutually exclusive with the
| |
| value | back to summary |
|---|---|
| public String[] value() Alias for
| |