|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.identity.application.common.cache.BaseCache<K,V>
public class BaseCache<K extends Serializable,V extends Serializable>
A base class for all cache implementations in Identity Application Management modules.
| Constructor Summary | |
|---|---|
BaseCache(String cacheName)
|
|
BaseCache(String cacheName,
int timeout)
|
|
BaseCache(String cacheName,
int timeout,
int capacity)
|
|
| Method Summary | |
|---|---|
void |
addToCache(K key,
V entry)
Add a cache entry. |
void |
addToCache(String key,
V entry)
|
void |
clear()
Remove everything in the cache. |
void |
clearCacheEntry(K key)
Clears a cache entry. |
void |
clearCacheEntry(String key)
|
V |
getValueFromCache(K key)
Retrieves a cache entry. |
V |
getValueFromCache(String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseCache(String cacheName)
public BaseCache(String cacheName,
int timeout)
public BaseCache(String cacheName,
int timeout,
int capacity)
| Method Detail |
|---|
public void addToCache(K key,
V entry)
key - Key which cache entry is indexed.entry - Actual object where cache entry is placed.
public void addToCache(String key,
V entry)
public V getValueFromCache(K key)
key - CacheKey
public V getValueFromCache(String key)
public void clearCacheEntry(String key)
public void clearCacheEntry(K key)
key - Key to clear cache.public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||