use of org.sagacity.sqltoy.translate.model.TranslateConfigModel in project sagacity-sqltoy by chenrenfei.
the class TranslateManager method put.
/**
* @todo 更新单个缓存的整体数据
* @param cacheName
* @param cacheType (默认为null,针对诸如数据字典类型的,对应字典类型)
* @param cacheValue
*/
public void put(String cacheName, String cacheType, HashMap<String, Object[]> cacheValue) {
if (translateCacheManager != null) {
TranslateConfigModel cacheModel = translateMap.get(cacheName);
if (cacheModel == null) {
logger.error("cacheName:{} 没有配置,请检查sqltoy-translate.xml文件!", cacheName);
return;
}
translateCacheManager.put(cacheModel, cacheModel.getCache(), cacheType, cacheValue);
}
}
Aggregations