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

io.fluxcapacitor.javaclient.common.caching.NoCache Maven / Gradle / Ivy

There is a newer version: 0.1015.0
Show newest version
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 mappingFunction) {
        return mappingFunction.apply(id);
    }

    @Override
    public void invalidateAll() {
        //no op
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy