Package com.okta.sdk.cache
Interface CacheManager
- All Known Implementing Classes:
DefaultCacheManager
,DisabledCacheManager
public interface CacheManager
A CacheManager provides and maintains the lifecycle of
Cache
instances.
This interface provides an abstraction (wrapper) API on top of an underlying cache framework's main Manager component (e.g. JCache, Ehcache, Hazelcast, JCS, OSCache, JBossCache, TerraCotta, Coherence, GigaSpaces, etc, etc), allowing a Okta SDK user to configure any cache mechanism they choose.
- Since:
- 0.5.0
-
Method Summary
-
Method Details
-
getCache
Acquires the cache with the specifiedname
. If a cache does not yet exist with that name, a new one will be created with that name and returned.- Type Parameters:
K
- type of cache keyV
- type of cache value- Parameters:
name
- the name of the cache to acquire.- Returns:
- the Cache with the given name
-