Package com.ibm.fhir.cache.annotation
Annotation Type Cacheable
-
@Retention(RUNTIME) @Target(METHOD) public @interface Cacheable
This annotation is applied to methods that may have their results cached using a Java dynamic proxy instance.@see
CachingProxy
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
duration
The duration amount of the entries after they are written to the result cacheClass<? extends CachingProxy.KeyGenerator>
keyGeneratorClass
The class used to generate keys for entries in the result cacheint
maximumSize
The maximum size of the result cache before entries are evictedChronoUnit
unit
The duration unit of the entries after they are written to to the result cache
-
-
-
-
unit
ChronoUnit unit
The duration unit of the entries after they are written to to the result cache- Returns:
- the duration unit
- Default:
- java.time.temporal.ChronoUnit.HOURS
-
-
-
keyGeneratorClass
Class<? extends CachingProxy.KeyGenerator> keyGeneratorClass
The class used to generate keys for entries in the result cache- Returns:
- the key generator class
- Default:
- com.ibm.fhir.cache.CachingProxy.KeyGenerator.class
-
-