最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Auto refresh cache async in spring boot - Stack Overflow

programmeradmin3浏览0评论

We need to implement a cache in Spring Boot 3 that:

  • Load data on the first call to a method.

  • Update the cache periodically with configurable times per method.

  • Perform asynchronous updates of the cache with what we have configured in the application.yml.

  • If we make a request and it has not yet been completely refreshed, it should show the old cache.

Can you propose me an example of a framework that facilitates this management?

I have been looking for the native asynchronous refresh part but it has not worked for me.

Thank you!

发布评论

评论列表(0)

  1. 暂无评论