All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.camunda.bpm.extension.keycloak.cache.PassThroughCache Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package org.camunda.bpm.extension.keycloak.cache;

import java.util.function.Function;

/**
 * A no-op implementation of the QueryCache.
 */
public class PassThroughCache implements QueryCache {
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public V getOrCompute(K key, Function computation) {
		return computation.apply(key);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void clear() {
		// no-op
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy