io.fluxcapacitor.javaclient.common.caching.NoCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Default Java client library for interfacing with Flux Capacitor.
package io.fluxcapacitor.javaclient.common.caching;
import java.util.function.Function;
public enum NoCache implements Cache {
INSTANCE;
@Override
public void put(String id, Object value) {
//no op
}
@Override
public T get(String id, Function super String, T> mappingFunction) {
return mappingFunction.apply(id);
}
@Override
public void invalidateAll() {
//no op
}
}