assembler icon indicating copy to clipboard operation
assembler copied to clipboard

Use ServiceLoader mechanism to inject Cache Provider

Open pellse opened this issue 10 months ago • 0 comments

The goal is to provide a default implementation of Cache per module/dependency (e.g. Caffeine cache, Spring cache, etc.).

This would allow, if e.g. assembler-cache-caffeine is present in the classpath, to write oneToOne(cached(this::callService)) instead of oneToOne(cached(this::callService, caffeineCache())), and still use the Caffeine implementation instead of the default one based on ConcurrentMap provided by the core assembler module.

pellse avatar Apr 04 '25 04:04 pellse