All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.common.util.cache.SimpleCache Maven / Gradle / Ivy

There is a newer version: 4.4.17
Show newest version
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