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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidprotected ObjectfromStoreValue(Object value) org.springframework.cache.Cache.ValueWrapper<T> T<T> TgetName()longReturn cache retrieval timeout in millisecondsvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(Object key, Object value) voidsetReadTimeout(long readTimeout) Set cache value retrieval timeoutprotected ObjecttoStoreValue(Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cache.Cache
evictIfPresent, invalidate, retrieve, retrieve
-
Constructor Details
-
HazelcastCache
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.springframework.cache.Cache
-
getNativeCache
- Specified by:
getNativeCachein interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
put
- Specified by:
putin interfaceorg.springframework.cache.Cache
-
toStoreValue
-
fromStoreValue
-
evict
- Specified by:
evictin interfaceorg.springframework.cache.Cache
-
clear
public void clear()- Specified by:
clearin interfaceorg.springframework.cache.Cache
-
putIfAbsent
- Specified by:
putIfAbsentin 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
-