* 版本:1.0
* 邮箱:liming@sogou-inc.com
*/
public void putAllDataToCache(){
Map<String, String> allFieldColName = new FieldNameAccessSessionMySQL().queryCacheAllFieldColName();
for (String key : allFieldColName.keySet()) {
EhcacheHandler.getInstance().set(EhcacheHandler.FOREVER_CACHE,key, allFieldColName.get(key));
}
Map<String, Map<String, String>> allTemplateIdMap = new FieldNameAccessSessionMySQL().queryCacheAllFieldIds();
for (String key : allTemplateIdMap.keySet()) {
EhcacheHandler.getInstance().set(EhcacheHandler.FOREVER_CACHE,key, allTemplateIdMap.get(key));
}
Map<String,String> allSingleMap = new FieldNameAccessSessionMySQL().queryCacheSingleFieldIds();
for (String key : allSingleMap.keySet()) {
EhcacheHandler.getInstance().set(EhcacheHandler.FOREVER_CACHE,key, allSingleMap.get(key));
}
}