Package org.keycloak.cache
Interface LocalCacheProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultLocalCacheProviderFactory
A
Provider to abstract the creation of local, non-clustered, in-memory caches from the underlying cache implementation.-
Method Summary
Modifier and TypeMethodDescription<K,V> LocalCache<K, V> create(LocalCacheConfiguration<K, V> configuration) Creates a newLocalCacheinstance for local caching.
-
Method Details
-
create
Creates a newLocalCacheinstance for local caching.LocalCacheProviderimplementations are not responsible for managing the lifecycle of createdLocalCacheinstances. It is the responsibility ofLocalCacheconsumers to ensure thatLocalCache.close()is called when the cache is no longer required.- Type Parameters:
K- the type of the cache Keys used for lookupV- the type of the cache Values to be stored- Parameters:
configuration- the desired cache configuration- Returns:
LocalCachea newly created cache
-