public class SimpleCache extends Object implements KeycloakCache
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,CachedApplication> |
applicationCache |
protected ConcurrentHashMap<String,CachedOAuthClient> |
clientCache |
protected ConcurrentHashMap<String,CachedRealm> |
realmCache |
protected ConcurrentHashMap<String,CachedRealm> |
realmCacheByName |
protected ConcurrentHashMap<String,CachedRole> |
roleCache |
| Constructor and Description |
|---|
SimpleCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCachedApplication(CachedApplication app) |
void |
addCachedOAuthClient(CachedOAuthClient client) |
void |
addCachedRealm(CachedRealm realm) |
void |
addCachedRole(CachedRole role) |
void |
clear() |
CachedApplication |
getApplication(String id) |
CachedRealm |
getCachedRealm(String id) |
CachedRealm |
getCachedRealmByName(String name) |
CachedOAuthClient |
getOAuthClient(String id) |
CachedRole |
getRole(String id) |
void |
invalidateApplication(CachedApplication app) |
void |
invalidateCachedApplicationById(String id) |
void |
invalidateCachedOAuthClientById(String id) |
void |
invalidateCachedRealm(CachedRealm realm) |
void |
invalidateCachedRealmById(String id) |
void |
invalidateCachedRoleById(String id) |
void |
invalidateOAuthClient(CachedOAuthClient client) |
void |
invalidateRole(CachedRole role) |
void |
invalidateRoleById(String id) |
protected ConcurrentHashMap<String,CachedRealm> realmCache
protected ConcurrentHashMap<String,CachedRealm> realmCacheByName
protected ConcurrentHashMap<String,CachedApplication> applicationCache
protected ConcurrentHashMap<String,CachedOAuthClient> clientCache
protected ConcurrentHashMap<String,CachedRole> roleCache
public void clear()
clear in interface KeycloakCachepublic CachedRealm getCachedRealm(String id)
getCachedRealm in interface KeycloakCachepublic void invalidateCachedRealm(CachedRealm realm)
invalidateCachedRealm in interface KeycloakCachepublic void invalidateCachedRealmById(String id)
invalidateCachedRealmById in interface KeycloakCachepublic void addCachedRealm(CachedRealm realm)
addCachedRealm in interface KeycloakCachepublic CachedRealm getCachedRealmByName(String name)
getCachedRealmByName in interface KeycloakCachepublic CachedApplication getApplication(String id)
getApplication in interface KeycloakCachepublic void invalidateApplication(CachedApplication app)
invalidateApplication in interface KeycloakCachepublic void addCachedApplication(CachedApplication app)
addCachedApplication in interface KeycloakCachepublic void invalidateCachedApplicationById(String id)
invalidateCachedApplicationById in interface KeycloakCachepublic CachedOAuthClient getOAuthClient(String id)
getOAuthClient in interface KeycloakCachepublic void invalidateOAuthClient(CachedOAuthClient client)
invalidateOAuthClient in interface KeycloakCachepublic void addCachedOAuthClient(CachedOAuthClient client)
addCachedOAuthClient in interface KeycloakCachepublic void invalidateCachedOAuthClientById(String id)
invalidateCachedOAuthClientById in interface KeycloakCachepublic CachedRole getRole(String id)
getRole in interface KeycloakCachepublic void invalidateRole(CachedRole role)
invalidateRole in interface KeycloakCachepublic void invalidateRoleById(String id)
invalidateRoleById in interface KeycloakCachepublic void addCachedRole(CachedRole role)
addCachedRole in interface KeycloakCachepublic void invalidateCachedRoleById(String id)
invalidateCachedRoleById in interface KeycloakCacheCopyright © 2014. All Rights Reserved.