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.Cachepublic Object getNativeCache()
getNativeCache in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper get(Object arg0)
get in interface org.springframework.cache.Cachepublic <T> T get(Object arg0, Class<T> arg1)
get in interface org.springframework.cache.Cachepublic void put(Object arg0, Object arg1)
put in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object arg0, Object arg1)
putIfAbsent in interface org.springframework.cache.Cachepublic void evict(Object arg0)
evict in interface org.springframework.cache.Cachepublic void clear()
clear in interface org.springframework.cache.CacheCopyright © 2015 Pivotal Software, Inc.. All rights reserved.