- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A provider for cache implementations to replace the default.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionprovide(CacheContext context)
Provide a thread safe map for the givenCacheType
.
-
Method Details
-
provide
Provide a thread safe map for the givenCacheType
.Implementations must ensure that the resulting
Map
is thread safe. Two examples of such thread safe maps areConcurrentMap
orCollections.synchronizedMap(Map)
.A
null
cache effectively turns off caching for the key.
-