@Cacheable 笔记
时间: 2023-10-24 07:30:44 浏览: 87
SSH笔记-二级缓存
@Cacheable是一个注解,用于触发缓存的填充。它可以应用在方法上,将方法的返回值写入缓存中。 @Cacheable可以根据方法的请求参数来对结果进行缓存。这意味着如果相同的参数再次调用该方法,将直接从缓存中获取结果,而不是执行方法的实际逻辑。 @Cacheable的作用是将方法的返回结果缓存在缓存中,以提高后续相同请求的性能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【Spring】Spring @Cacheable 官方学习及demo](https://blog.csdn.net/chenghan_yang/article/details/128487324)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [SpringBoot笔记-下篇.pdf](https://download.csdn.net/download/qq_37438795/12391712)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [springboot2.4.0缓存的工作原理与@Cacheable运行流程-笔记](https://blog.csdn.net/weixin_44414492/article/details/111561441)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文