Esempio n. 1
0
 /** 添加或者更新缓存 */
 public void cacheAdd(String ids) {
   UserInfo userInfo = UserInfo.dao.findById(ids);
   ToolCache.set(
       ParamInitPlugin.cacheStart_userInfo + userInfo.getStr(UserInfo.column_email), userInfo);
   ToolCache.set(
       ParamInitPlugin.cacheStart_userInfo + userInfo.getStr(UserInfo.column_mobile), userInfo);
 }
Esempio n. 2
0
 /** 删除缓存 */
 public void cacheRemove(String ids) {
   UserInfo userInfo = UserInfo.dao.findById(ids);
   ToolCache.remove(ParamInitPlugin.cacheStart_userInfo + userInfo.getStr(UserInfo.column_email));
   ToolCache.remove(ParamInitPlugin.cacheStart_userInfo + userInfo.getStr(UserInfo.column_mobile));
 }