Package dev.voidframework.cache
Annotation Interface CacheRemove
Annotation indicating that the cache must be evicted.
-
Optional Element Summary
Optional Elements
-
Element Details
-
key
String keyKey of the cache to evict.- Returns:
- Key of the cache
- Default:
- "{class}.{method}"
-
evictOn
Class[] evictOnDefines exception classes indicating the exception types that must cause a cache eviction. If classes are specified, the cache will only be evicted if the specified exceptions are thrown.- Returns:
- Class[] of Exceptions
- Default:
- {}
-
noEvictOn
Class[] noEvictOnDefines exception Classes indicating the exception types that must not cause a cache eviction.- Returns:
- Class[] of Exceptions
- Default:
- {}
-