io.fastkv.WeakCache Maven / Gradle / Ivy
package io.fastkv;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.Map;
final class WeakCache {
private final Map cache = new HashMap<>();
private final ReferenceQueue