helidon
helidon copied to clipboard
Caching - Initial design proposal
This is just an initial design of API/SPI. We may not implement this feature at all if we decide so!
Signed-off-by: Tomas Langer [email protected]
The semantics of @CacheInit
are not very clear to me. The name suggests a more primordial operation that what it appears to be. Your example seems to suggest that @CacheCreate
(or maybe @CacheAdd
) would be a better name for the annotation.
CacheLoader
is now propagated to cache integration layer - so it can be used to initialize the cache itself (if supported by the provider), or used in the manner of LoaderBackedCache
which delegates all other methods to the cache implementation.
If this is not feasible even for Coherence, I can remove that
@spericas - yes, @CacheAdd
may be a better name.