K - The class implemented by the cache keysV - The class implemented by the cache valuespublic class XPFCache<K,V> extends Object
| Constructor and Description | 
|---|
XPFCache(net.sf.ehcache.Cache cache)
Constructor. 
 | 
public XPFCache(net.sf.ehcache.Cache cache)
cache - the cachepublic V get(K key, Function<K,V> fallbackLoader)
key - the name of the key to retrieve the object byfallbackLoader - a cache loader to use to load the value if the value cannot be found in cachepublic V put(K key, V value)
key - key with which the specified value is to be associatedvalue - value to be associated with the specified keypublic void remove(K key)
key - key whose mapping is to be removed from the cacheCopyright © 2024. All rights reserved.