public class SpringRemoteCache extends Object implements org.springframework.cache.Cache
A
implementation that delegates to a
Cache
instance supplied at construction
time.
org.infinispan.client.hotrod.RemoteCache
Constructor and Description |
---|
SpringRemoteCache(RemoteCache<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() |
RemoteCache<?,?> |
getNativeCache() |
void |
put(Object key,
Object value) |
String |
toString() |
public SpringRemoteCache(RemoteCache<Object,Object> nativeCache)
nativeCache
- the underlying cachepublic String getName()
getName
in interface org.springframework.cache.Cache
Cache.getName()
public RemoteCache<?,?> 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 © 2018 JBoss, a division of Red Hat. All rights reserved.