- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CacheProvider
A provider for cache implementations to replace the default.
- Lukas Eder
provide@Nullable @Nullable Map<Object,
Object>provide (CacheContext context)Provide a thread safe map for the given
Implementations must ensure that the resulting
Mapis thread safe. Two examples of such thread safe maps are
nullcache effectively turns off caching for the key.