Commit 6f81e3a1 by 周晓航

修改redis 使用类型

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent c30e1de0
...@@ -182,7 +182,7 @@ public class WeChatLiveMsgHandle { ...@@ -182,7 +182,7 @@ public class WeChatLiveMsgHandle {
private void putRedis(String redisKey, String accessToken) { private void putRedis(String redisKey, String accessToken) {
// 存redis + 过期时间 // 存redis + 过期时间
redisCache.setAdd(redisKey, accessToken); redisCache.save(redisKey, accessToken);
redisCache.updateTTL(redisKey, 2, TimeUnit.HOURS); redisCache.updateTTL(redisKey, 2, TimeUnit.HOURS);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment