org.kuali.common.util.cache.SimpleCache Maven / Gradle / Ivy
package org.kuali.common.util.cache;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public final class SimpleCache implements Cache {
private final Map map = Collections.synchronizedMap(new HashMap());
@Override
public void put(K key, V value) {
map.put(key, value);
}
@Override
public V get(K key) {
return map.get(key);
}
@Override
public void clear() {
map.clear();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy