Demo project for online stream #15 about caching in general and using it in Spring Boot application.
To get a link to online stream on YouTube please do the following:
- 💰 Make any donation to support my volunteering initiative to help Ukrainian Armed Forces by means described on my website
- 📧 Write me an email indicating donation amount and time
- 📺 I will reply with the link to the stream on YouTube.
Thank you in advance for your support! Слава Україні! 🇺🇦
To start up Redis please use the provided docker-compose
file:
docker-compose run .
Start application and send requests to:
- http://localhost:8080/op/{name} - first execution runs for 3 sec, next runs faster as data is taken from cache
- http://localhost:8080/up/{name} - force set value under
name
- http://localhost:8080/clean/{name} - clean cache value for
name
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring cache abstraction
- Spring Data Redis (Access+Driver)
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Caching Data with Spring
- Messaging with Redis
These additional references should also help you: