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