|
@@ -28,7 +28,8 @@ public class SystemPropertyCache extends RandomObjectRedisCache<SysPropertyCache
|
|
|
public SysPropertyCacheBean loadFromResource(Object... keys) {
|
|
|
String propKey = (String) keys[0];
|
|
|
|
|
|
- SystemPropertyEntity sysConf = GlobalHelper.getEntity(systemPropertyRepo, propKey, SystemPropertyEntity.class);
|
|
|
+ SystemPropertyEntity sysConf = GlobalHelper.getEntity(systemPropertyRepo, propKey,
|
|
|
+ SystemPropertyEntity.class);
|
|
|
if (null == sysConf) {
|
|
|
return null;
|
|
|
}
|
|
@@ -86,8 +87,8 @@ public class SystemPropertyCache extends RandomObjectRedisCache<SysPropertyCache
|
|
|
|
|
|
@Override
|
|
|
protected int getTimeout() {
|
|
|
- // 2分钟
|
|
|
- return 60 * 2;
|
|
|
+ // 10分钟
|
|
|
+ return 60 * 10;
|
|
|
}
|
|
|
|
|
|
}
|