public interface Cache<K,V>
This interface provides an abstraction (wrapper) API on top of an underlying cache framework's cache instance (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.
| Modifier and Type | Method and Description | 
|---|---|
V | 
get(K key)
Returns the cached value stored under the specified  
key or
 null if there is no cache entry for that key. | 
V | 
put(K key,
   V value)
Adds a cache entry. 
 | 
V | 
remove(K key)
Removes the cached value stored under the specified  
key. | 
V get(K key)
key or
 null if there is no cache entry for that key.key - the key that the value was previous added withnull if there is no entry for the specified keyV put(K key, V value)
key - the key used to identify the object being stored.value - the value to be stored in the cache.key or null if there was no previous valueCopyright © 2017–2023 Okta. All rights reserved.