测试 @CacheEvict
使用了CacheEvict注解的方法,会清空指定缓存 「一般用在删除的方法上」
cacheNames 命名规则 查看 {@link CacheNames CacheNames} 注释 支持多参数
Authorization: Bearer ********************curl --location --request GET 'localhost:8080/demo/cache/test3?key&value' \
--header 'clientid: e5cd7e4891bf95d1d19206ce24a7b32e' \
--header 'Authorization: Bearer <token>'{
"code": 0,
"msg": "string",
"data": "string"
}