package com.vci.server.cache;
|
|
import com.vci.common.resource.CommonProperties;
|
|
public class CacheConfUtil {
|
|
private static String _refreshEveryTime = "";
|
private static boolean _refresh = false;
|
|
/**
|
* 判断在每一次数据读取时,是否需要读取变化的内容
|
* @return
|
*/
|
public static boolean getEveryTimeRefresh() {
|
if (_refreshEveryTime == null || _refreshEveryTime.length() == 0) {
|
_refreshEveryTime = CommonProperties.getStringProperty("UI.cache.refreshEveryTime");
|
if (_refreshEveryTime != null && _refreshEveryTime.equalsIgnoreCase("true")) {
|
_refresh = true;
|
} else {
|
_refresh = false;
|
}
|
}
|
|
return _refresh;
|
}
|
}
|