public class RedissonCache extends Object implements org.springframework.cache.Cache
Constructor and Description |
---|
RedissonCache(RMap<Object,Object> map,
boolean allowNullValues) |
RedissonCache(RMapCache<Object,Object> mapCache,
CacheConfig config,
boolean allowNullValues) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(Object key) |
protected Object |
fromStoreValue(Object storeValue) |
org.springframework.cache.Cache.ValueWrapper |
get(Object key) |
<T> T |
get(Object key,
Callable<T> valueLoader) |
<T> T |
get(Object key,
Class<T> type) |
String |
getName() |
RMap<?,?> |
getNativeCache() |
void |
put(Object key,
Object value) |
org.springframework.cache.Cache.ValueWrapper |
putIfAbsent(Object key,
Object value) |
protected Object |
toStoreValue(Object userValue) |
public RedissonCache(RMapCache<Object,Object> mapCache, CacheConfig config, boolean allowNullValues)
public String getName()
getName
in interface org.springframework.cache.Cache
public RMap<?,?> getNativeCache()
getNativeCache
in interface org.springframework.cache.Cache
public org.springframework.cache.Cache.ValueWrapper get(Object key)
get
in interface org.springframework.cache.Cache
public <T> T get(Object key, Class<T> type)
get
in interface org.springframework.cache.Cache
public void put(Object key, Object value)
put
in interface org.springframework.cache.Cache
public org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
putIfAbsent
in interface org.springframework.cache.Cache
public void evict(Object key)
evict
in interface org.springframework.cache.Cache
public void clear()
clear
in interface org.springframework.cache.Cache
public <T> T get(Object key, Callable<T> valueLoader)
get
in interface org.springframework.cache.Cache
Copyright © 2014–2018 The Redisson Project. All rights reserved.