Commit c6553420 by 袁伟铭

1.0.0

parent 4ef3945b
......@@ -107,8 +107,8 @@ public class RedisUtils {
* @param key 键
* @return 值
*/
public void setObj(String key, Object value, long time, TimeUnit timeUnit) {
redisTemplate.opsForValue().set(key, value, time, timeUnit);
public void setObj(String key, Object value, long time) {
redisTemplate.opsForValue().set(key, value, time, TimeUnit.MINUTES);
}
/**
......@@ -117,8 +117,8 @@ public class RedisUtils {
* @param key 键
* @return 值
*/
public void setObj(String key, Object value, long time) {
redisTemplate.opsForValue().set(key, value, time, TimeUnit.MINUTES);
public void setObj(String key, Object value, long time, TimeUnit timeUnit) {
redisTemplate.opsForValue().set(key, value, time, timeUnit);
}
/**
......
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