Package org.aoju.bus.cache.metric
Class RedisCache
java.lang.Object
org.aoju.bus.cache.metric.RedisCache
-
Constructor Summary
ConstructorsConstructorDescriptionRedisCache(redis.clients.jedis.JedisPool jedisPool) RedisCache(redis.clients.jedis.JedisPool jedisPool, BaseSerializer serializer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()清空缓存信息从缓存中获得对象read(Collection<String> keys) 从缓存中获得一组对象信息void从缓存中移除对象voidtearDown()void将对象加入到缓存,使用指定失效时长void将对象加入到缓存,使用指定失效时长
-
Constructor Details
-
RedisCache
public RedisCache(redis.clients.jedis.JedisPool jedisPool) -
RedisCache
-
-
Method Details
-
read
-
write
-
read
-
write
-
remove
-
clear
-
tearDown
@PreDestroy public void tearDown()
-