org.infinispan.spring.provider
Class SpringCache
java.lang.Object
org.infinispan.spring.provider.SpringCache
- All Implemented Interfaces:
- org.springframework.cache.Cache
public class SpringCache
- extends Object
- implements org.springframework.cache.Cache
A Cache
implementation that delegates to a
org.infinispan.Cache
instance supplied at construction
time.
- Author:
- Olaf Bergner, Marius Bogoevici
Nested classes/interfaces inherited from interface org.springframework.cache.Cache |
org.springframework.cache.Cache.ValueWrapper |
SpringCache
public SpringCache(BasicCache<Object,Object> nativeCache)
- Parameters:
nativeCache
-
getName
public String getName()
- Specified by:
getName
in interface org.springframework.cache.Cache
- See Also:
Cache.getName()
getNativeCache
public BasicCache<?,?> getNativeCache()
- Specified by:
getNativeCache
in interface org.springframework.cache.Cache
- See Also:
Cache.getNativeCache()
get
public org.springframework.cache.Cache.ValueWrapper get(Object key)
- Specified by:
get
in interface org.springframework.cache.Cache
- See Also:
Cache.get(java.lang.Object)
put
public void put(Object key,
Object value)
- Specified by:
put
in interface org.springframework.cache.Cache
- See Also:
Cache.put(java.lang.Object, java.lang.Object)
evict
public void evict(Object key)
- Specified by:
evict
in interface org.springframework.cache.Cache
- See Also:
Cache.evict(java.lang.Object)
clear
public void clear()
- Specified by:
clear
in interface org.springframework.cache.Cache
- See Also:
Cache.clear()
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.