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.Cache
Cache.getName()
public BasicCache<?,?> getNativeCache()
getNativeCache
in interface org.springframework.cache.Cache
Cache.getNativeCache()
public org.springframework.cache.Cache.ValueWrapper get(Object key)
get
in interface org.springframework.cache.Cache
Cache.get(java.lang.Object)
public void put(Object key, Object value)
put
in interface org.springframework.cache.Cache
Cache.put(java.lang.Object, java.lang.Object)
public void evict(Object key)
evict
in interface org.springframework.cache.Cache
Cache.evict(java.lang.Object)
public void clear()
clear
in interface org.springframework.cache.Cache
Cache.clear()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.