fix: 修复参数缓存未及时过期的问题

This commit is contained in:
2024-02-20 22:19:34 +08:00
parent 6be1b6cfb1
commit 976e9c43df
3 changed files with 9 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ public class CommonController {
@SaIgnore
@Operation(summary = "查询参数", description = "查询参数")
@GetMapping("/option")
@Cached(name = CacheConstants.OPTION_KEY_PREFIX)
@Cached(key = "#query.code", name = CacheConstants.OPTION_KEY_PREFIX)
public R<List<LabelValueResp<String>>> listOption(@Validated OptionQuery query) {
return R.ok(optionService.list(query)
.stream()