public class AuthenticationContextCache extends org.wso2.carbon.identity.application.common.cache.BaseCache<AuthenticationContextCacheKey,AuthenticationContextCacheEntry>
Modifier and Type | Method and Description |
---|---|
void |
addToCache(AuthenticationContextCacheKey key,
AuthenticationContextCacheEntry entry)
Add a cache entry.
|
void |
clearCacheEntry(AuthenticationContextCacheKey key)
Clears a cache entry.
|
static AuthenticationContextCache |
getInstance()
Singleton method
|
AuthenticationContextCacheEntry |
getValueFromCache(AuthenticationContextCacheKey key)
Retrieves a cache entry.
|
public static AuthenticationContextCache getInstance()
public void addToCache(AuthenticationContextCacheKey key, AuthenticationContextCacheEntry entry)
addToCache
in class org.wso2.carbon.identity.application.common.cache.BaseCache<AuthenticationContextCacheKey,AuthenticationContextCacheEntry>
key
- Key which cache entry is indexed.entry
- Actual object where cache entry is placed.public AuthenticationContextCacheEntry getValueFromCache(AuthenticationContextCacheKey key)
getValueFromCache
in class org.wso2.carbon.identity.application.common.cache.BaseCache<AuthenticationContextCacheKey,AuthenticationContextCacheEntry>
key
- CacheKeypublic void clearCacheEntry(AuthenticationContextCacheKey key)
clearCacheEntry
in class org.wso2.carbon.identity.application.common.cache.BaseCache<AuthenticationContextCacheKey,AuthenticationContextCacheEntry>
key
- Key to clear cache.Copyright © 2016 WSO2. All rights reserved.