Commit 8bc6463e by WeiCong

调整redis缓存失效时间

parent 3520e9aa
......@@ -61,7 +61,7 @@ public class RedisCache extends AbstractCache {
@Override
public boolean cacheWrite(String key, Object val, long l) {
try {
RedisUtil.set(key, val, (int) l);
RedisUtil.set(key, val, (int) (l / 1000));
return true;
} catch (Exception e) {
throw new NoUiException("将key=" + key + "的值放入缓存[" + this.cacheName + "]出现异常", e);
......
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