Search in sources :

Example 1 with CachedResource

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);
}
Also used : CachedResource(org.keycloak.models.cache.infinispan.authorization.entities.CachedResource)

Aggregations

CachedResource (org.keycloak.models.cache.infinispan.authorization.entities.CachedResource)1