com.hazelcast.spring.cache
Class HazelcastCache

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueWrapper
 
Constructor Summary
HazelcastCache(IMap<Object,Object> map)
           
 
Method Summary
 void clear()
           
 void evict(Object key)
           
protected  Object fromStoreValue(Object value)
           
 org.springframework.cache.Cache.ValueWrapper get(Object key)
           
<T> T
get(Object key, Class<T> type)
           
 String getName()
           
 Object getNativeCache()
           
 void put(Object key, Object value)
           
protected  Object toStoreValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HazelcastCache

public HazelcastCache(IMap<Object,Object> map)
Method Detail

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.