测试 @CachePut
加了@CachePut注解的方法,会把方法的返回值put到缓存里面缓存起来,供其它地方使用 它「通常用在新增或者实时更新方法上」
cacheNames 命名规则 查看 {@link CacheNames CacheNames} 注释 支持多参数
Authorization: Bearer ********************curl --location 'https://www.mengzhikeji.cn/prod-api/demo/demo/cache/test2?key=&value=' \
--header 'Authorization: Bearer <token>'{
"code": 0,
"msg": "string",
"data": "string"
}