com.hazelcast.spring.cache
Class HazelcastCache
java.lang.Object
com.hazelcast.spring.cache.HazelcastCache
- All Implemented Interfaces:
- org.springframework.cache.Cache
public class HazelcastCache
- extends Object
- implements org.springframework.cache.Cache
- Author:
- mdogan 4/3/12
Nested classes/interfaces inherited from interface org.springframework.cache.Cache |
org.springframework.cache.Cache.ValueWrapper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HazelcastCache
public HazelcastCache(IMap<Object,Object> map)
getName
public String getName()
- Specified by:
getName
in interface org.springframework.cache.Cache
getNativeCache
public Object getNativeCache()
- Specified by:
getNativeCache
in interface org.springframework.cache.Cache
get
public org.springframework.cache.Cache.ValueWrapper get(Object key)
- Specified by:
get
in interface org.springframework.cache.Cache
get
public <T> T get(Object key,
Class<T> type)
put
public void put(Object key,
Object value)
- Specified by:
put
in interface org.springframework.cache.Cache
toStoreValue
protected Object toStoreValue(Object value)
fromStoreValue
protected Object fromStoreValue(Object value)
evict
public void evict(Object key)
- Specified by:
evict
in interface org.springframework.cache.Cache
clear
public void clear()
- Specified by:
clear
in interface org.springframework.cache.Cache
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.