Commit 8bc6463e by WeiCong

调整redis缓存失效时间

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