예제 #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);
 }