This is a sample application that implements a very basic cache through Spring Boot and Caffeine. This repo is a companion to my blog post of the subject.
- Run
./gradlew bootRun
- Open a browser window and navigate to localhost:8080
- The Now time will update with each refresh while the Cached time will stay the same for 30 seconds.
- Every 30 seconds the cache will be evicted and the time will be updated