com.mageddo.commons.caching.Cache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-lang Show documentation
Show all versions of commons-lang Show documentation
A set of useful classes, evicting you repeating yourself, avoiding fatigue
The newest version!
package com.mageddo.commons.caching;
import java.util.function.Function;
public interface Cache {
boolean containsKey(String key);
T get(String k);
T get(String k, T def);
/**
* This operation must be used with lock in the implemented method.
*/
T computeIfAbsent(String key, Function super String, ? extends T> mappingFunction);
void clear();
boolean isEmpty();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy