Class SpringCache
java.lang.Object
org.infinispan.spring.common.provider.SpringCache
- All Implemented Interfaces:
org.springframework.cache.Cache
A implementation that delegates to a
Cache instance supplied at construction
time.
org.infinispan.Cache
- Author:
- Olaf Bergner, Marius Bogoevici
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.cache.support.SimpleValueWrapper -
Constructor Summary
ConstructorsConstructorDescriptionSpringCache(BasicCache nativeCache) SpringCache(BasicCache nativeCache, long readTimeout, long writeTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidorg.springframework.cache.Cache.ValueWrapper<T> T<T> TgetName()BasicCache<?,?> longvoidvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(Object key, Object value) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cache.Cache
evictIfPresent, invalidate
-
Field Details
-
NULL_VALUE_WRAPPER
public static final org.springframework.cache.support.SimpleValueWrapper NULL_VALUE_WRAPPER
-
-
Constructor Details
-
SpringCache
- Parameters:
nativeCache- underlying cache
-
SpringCache
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.springframework.cache.Cache- See Also:
-
Cache.getName()
-
getNativeCache
- Specified by:
getNativeCachein interfaceorg.springframework.cache.Cache- See Also:
-
Cache.getNativeCache()
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache- See Also:
-
Cache.get(Object)
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
put
- Specified by:
putin interfaceorg.springframework.cache.Cache- See Also:
-
Cache.put(Object, Object)
-
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceorg.springframework.cache.Cache
-
evict
- Specified by:
evictin interfaceorg.springframework.cache.Cache- See Also:
-
Cache.evict(Object)
-
clear
public void clear()- Specified by:
clearin interfaceorg.springframework.cache.Cache- See Also:
-
Cache.clear()
-
toString
-
getWriteTimeout
public long getWriteTimeout()
-