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 checkout-sdk Show documentation
Show all versions of checkout-sdk Show documentation
PayPal SDK for integrating with the Checkout REST APIs
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);
}
}