org.snapscript.common.Cache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
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);
V cache(K key, V value);
void clear();
int size();
}