public class SpringCache extends Object implements org.springframework.cache.Cache
A implementation that delegates to a
Cache instance supplied at construction
time.
org.infinispan.Cache
| Constructor and Description |
|---|
SpringCache(BasicCache<Object,Object> nativeCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
evict(Object key) |
org.springframework.cache.Cache.ValueWrapper |
get(Object key) |
String |
getName() |
BasicCache<?,?> |
getNativeCache() |
void |
put(Object key,
Object value) |
String |
toString() |
public SpringCache(BasicCache<Object,Object> nativeCache)
nativeCache - underlying cachepublic String getName()
getName in interface org.springframework.cache.CacheCache.getName()public BasicCache<?,?> getNativeCache()
getNativeCache in interface org.springframework.cache.CacheCache.getNativeCache()public org.springframework.cache.Cache.ValueWrapper get(Object key)
get in interface org.springframework.cache.CacheCache.get(java.lang.Object)public void put(Object key, Object value)
put in interface org.springframework.cache.CacheCache.put(java.lang.Object, java.lang.Object)public void evict(Object key)
evict in interface org.springframework.cache.CacheCache.evict(java.lang.Object)public void clear()
clear in interface org.springframework.cache.CacheCache.clear()public String toString()
toString in class ObjectObject.toString()Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.