Files
java-tutorials/data-structures/src/main/java/com/baeldung/lrucache/Cache.java
T

16 lines
215 B
Java
Raw Normal View History

package com.baeldung.lrucache;
import java.util.Optional;
public interface Cache<K, V> {
boolean put(K key, V value);
Optional<V> get(K key);
int size();
boolean isEmpty();
void clear();
}