/** * 删除缓存 * * @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")); }
public void removeCache(Object key) { CacheKit.remove(CACHE_NAME, key); }