com.paypal.core.cache.MemoryCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
The newest version!
package com.paypal.core.cache;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class MemoryCache implements Cache {
private Map store = new ConcurrentHashMap<>();
@Override
public T get(String key) {
return store.get(key);
}
@Override
public void put(String key, T value) {
store.put(key, value);
}
@Override
public boolean contains(String key) {
return store.containsKey(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy