示例#1
0
文件: User.java 项目: ccivo100/fire
 /**
  * 删除缓存
  *
  * @param id
  */
 public void cacheRemove(Long id) {
   User user = User.dao.findById(id);
   CacheKit.remove(DictKeys.cache_name_system, ThreadParamInit.cacheStart_user + id);
   CacheKit.remove(
       DictKeys.cache_name_system, ThreadParamInit.cacheStart_user + user.getStr("username"));
   CacheKit.remove(
       DictKeys.cache_name_system, ThreadParamInit.cacheStart_user + user.getStr("email"));
   CacheKit.remove(
       DictKeys.cache_name_system, ThreadParamInit.cacheStart_user + user.getStr("phone"));
 }
示例#2
0
 public void removeCache(Object key) {
   CacheKit.remove(CACHE_NAME, key);
 }