helidon icon indicating copy to clipboard operation
helidon copied to clipboard

Caching - Initial design proposal

Open tomas-langer opened this issue 3 years ago • 3 comments

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]

tomas-langer avatar Jul 15 '21 09:07 tomas-langer

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.

spericas avatar Jul 19 '21 14:07 spericas

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

tomas-langer avatar Jul 19 '21 15:07 tomas-langer

@spericas - yes, @CacheAdd may be a better name.

tomas-langer avatar Jul 19 '21 15:07 tomas-langer