public class PublicRedisCache extends Object
Constructor and Description |
---|
PublicRedisCache(String name,
byte[] prefix,
org.springframework.data.redis.core.RedisTemplate<?,?> template,
long expiration) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(Object arg0) |
org.springframework.cache.Cache.ValueWrapper |
get(Object arg0) |
<T> T |
get(Object arg0,
Class<T> arg1) |
String |
getName() |
Object |
getNativeCache() |
void |
put(Object arg0,
Object arg1) |
org.springframework.cache.Cache.ValueWrapper |
putIfAbsent(Object arg0,
Object arg1) |
public PublicRedisCache(String name, byte[] prefix, org.springframework.data.redis.core.RedisTemplate<?,?> template, long expiration)
public String getName()
getName
in interface org.springframework.cache.Cache
public Object getNativeCache()
getNativeCache
in interface org.springframework.cache.Cache
public org.springframework.cache.Cache.ValueWrapper get(Object arg0)
get
in interface org.springframework.cache.Cache
public <T> T get(Object arg0, Class<T> arg1)
get
in interface org.springframework.cache.Cache
public void put(Object arg0, Object arg1)
put
in interface org.springframework.cache.Cache
public org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object arg0, Object arg1)
putIfAbsent
in interface org.springframework.cache.Cache
public void evict(Object arg0)
evict
in interface org.springframework.cache.Cache
public void clear()
clear
in interface org.springframework.cache.Cache
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.