org.camunda.bpm.extension.keycloak.cache.QueryCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camunda-bpm-identity-keycloak Show documentation
Show all versions of camunda-bpm-identity-keycloak Show documentation
A Camunda Identity Provider Plugin for Keycloak
package org.camunda.bpm.extension.keycloak.cache;
import java.util.function.Function;
/**
* The interface for query cache implementations.
*
* @param The type of key used to lookup the cache
* @param The cached or computed value corresponding to the provided key
*/
public interface QueryCache {
/**
* Gets the cached value if present or computes, stores and returns the computed value.
*
* @param key The key to lookup the cache with
* @param computation the computation to perform if no entries are present for requested key
* @return the value corresponding to the provided key
*/
V getOrCompute(K key, Function computation);
/**
* Clear/invalidate all entries in cache.
*/
void clear();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy