use of org.keycloak.models.cache.infinispan.authorization.entities.CachedResource in project keycloak by keycloak.
the class StoreFactoryCacheSession method cacheResource.
void cacheResource(Resource model) {
String id = model.getId();
if (cache.getCache().containsKey(id)) {
return;
}
Long loaded = cache.getCurrentRevision(id);
if (!modelMightExist(id)) {
return;
}
if (invalidations.contains(id))
return;
cache.addRevisioned(new CachedResource(loaded, model), startupRevision);
}
Aggregations