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
Modifier and TypeFieldDescriptionstatic final org.springframework.cache.support.SimpleValueWrapper
-
Constructor Summary
ConstructorDescriptionSpringCache
(BasicCache nativeCache) SpringCache
(BasicCache nativeCache, long readTimeout, long writeTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
org.springframework.cache.Cache.ValueWrapper
<T> T
<T> T
getName()
BasicCache<?,
?> long
void
void
org.springframework.cache.Cache.ValueWrapper
putIfAbsent
(Object key, Object value) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getName
in interfaceorg.springframework.cache.Cache
- See Also:
-
Cache.getName()
-
getNativeCache
- Specified by:
getNativeCache
in interfaceorg.springframework.cache.Cache
- See Also:
-
Cache.getNativeCache()
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
- See Also:
-
Cache.get(Object)
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
put
- Specified by:
put
in interfaceorg.springframework.cache.Cache
- See Also:
-
Cache.put(Object, Object)
-
put
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceorg.springframework.cache.Cache
-
evict
- Specified by:
evict
in interfaceorg.springframework.cache.Cache
- See Also:
-
Cache.evict(Object)
-
clear
public void clear()- Specified by:
clear
in interfaceorg.springframework.cache.Cache
- See Also:
-
Cache.clear()
-
toString
-
getWriteTimeout
public long getWriteTimeout()
-