清空所有客户端缓存
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package com.fuyuanshen.system.controller.system;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import com.fuyuanshen.common.core.constant.CacheNames;
|
||||
import com.fuyuanshen.common.core.domain.R;
|
||||
import com.fuyuanshen.common.excel.utils.ExcelUtil;
|
||||
import com.fuyuanshen.common.log.annotation.Log;
|
||||
@ -13,6 +14,7 @@ import com.fuyuanshen.system.domain.vo.SysConfigVo;
|
||||
import com.fuyuanshen.system.service.ISysConfigService;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@ -134,4 +136,15 @@ public class SysConfigController extends BaseController {
|
||||
configService.resetConfigCache();
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 清空所有客户端缓存
|
||||
*/
|
||||
@GetMapping(value = "/clearAllClientCache")
|
||||
@CacheEvict(cacheNames = CacheNames.SYS_CLIENT, allEntries = true)
|
||||
public void clearAllClientCache() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user