Package com.hazelcast.spring.cache
Class HazelcastCache
java.lang.Object
com.hazelcast.spring.cache.HazelcastCache
- All Implemented Interfaces:
org.springframework.cache.Cache
Spring related
Cache
implementation for Hazelcast.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
protected Object
fromStoreValue
(Object value) org.springframework.cache.Cache.ValueWrapper
<T> T
<T> T
getName()
long
Return cache retrieval timeout in millisecondsvoid
org.springframework.cache.Cache.ValueWrapper
putIfAbsent
(Object key, Object value) void
setReadTimeout
(long readTimeout) Set cache value retrieval timeoutprotected Object
toStoreValue
(Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cache.Cache
evictIfPresent, invalidate, retrieve, retrieve
-
Constructor Details
-
HazelcastCache
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.springframework.cache.Cache
-
getNativeCache
- Specified by:
getNativeCache
in interfaceorg.springframework.cache.Cache
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
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
-
toStoreValue
-
fromStoreValue
-
evict
- Specified by:
evict
in interfaceorg.springframework.cache.Cache
-
clear
public void clear()- Specified by:
clear
in interfaceorg.springframework.cache.Cache
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceorg.springframework.cache.Cache
-
setReadTimeout
public void setReadTimeout(long readTimeout) Set cache value retrieval timeout- Parameters:
readTimeout
- cache value retrieval timeout in milliseconds. 0 or negative values disable timeout
-
getReadTimeout
public long getReadTimeout()Return cache retrieval timeout in milliseconds
-