org.snapscript.common.Cache Maven / Gradle / Ivy
package org.snapscript.common;
import java.util.Set;
public interface Cache {
Set keySet();
V take(K key);
V fetch(K key);
boolean isEmpty();
boolean contains(K key);
void cache(K key, V value);
void clear();
int size();
}