public void clearCacheEntry(CacheKey key) { String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId(); super.clearCacheEntry(keyValue); SessionDataStore.getInstance().clearSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME); if (enableRequestScopeCache) { SessionDataStore.getInstance().clearSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME); } }
public void addToCache(CacheKey key, CacheEntry entry) { String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId(); super.addToCache(keyValue, entry); SessionDataStore.getInstance() .storeSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME, entry); if (enableRequestScopeCache) { SessionDataStore.getInstance() .storeSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME, entry); } }
public CacheEntry getValueFromCache(CacheKey key) { String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId(); CacheEntry cacheEntry = super.getValueFromCache(keyValue); if (cacheEntry == null) { cacheEntry = (CacheEntry) SessionDataStore.getInstance() .getSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME); } return cacheEntry; }
private void storeToSessionStore(String id, AuthorizationGrantCacheEntry entry) { SessionDataStore.getInstance().storeSessionData(id, AUTHORIZATION_GRANT_CACHE_NAME, entry); }
private AuthorizationGrantCacheEntry getFromSessionStore(String id) { return (AuthorizationGrantCacheEntry) SessionDataStore.getInstance().getSessionData(id, AUTHORIZATION_GRANT_CACHE_NAME); }
private void clearFromSessionStore(String id) { SessionDataStore.getInstance().clearSessionData(id, AUTHORIZATION_GRANT_CACHE_NAME); }