Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kieranmueller/spring-boot-caching
Simple Spring Boot Caching Example with a Hello World-ish CRUD API and H2 DB to demonstrate
https://github.com/kieranmueller/spring-boot-caching
cache h2 java spring springboot
Last synced: about 1 month ago
JSON representation
Simple Spring Boot Caching Example with a Hello World-ish CRUD API and H2 DB to demonstrate
- Host: GitHub
- URL: https://github.com/kieranmueller/spring-boot-caching
- Owner: KieranMueller
- Created: 2024-04-18T20:46:00.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-24T16:56:27.000Z (9 months ago)
- Last Synced: 2024-04-24T19:20:42.282Z (9 months ago)
- Topics: cache, h2, java, spring, springboot
- Homepage: http://localhost:8080/h2-console
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Spring Boot Caching
- Simple Spring Boot Caching Example with a Hello World-ish CRUD API to demonstrate
- (Application mocks expensive http requests using sleep() {3 seconds} method in service layer for both GET endpoints)### How to run
- Clone the project
- Open in IDE
- If IDE does not automatically, run a gradle sync to install dependencies
- Run the app
- Create CRUD endpoint calls in Postman or Insomnia
- Test functionality, ensuring the cache remains up to date with the DB
- Take note of GET requests that are either expensive (3 seconds) or inexpensive (time < 3s)### View H2 Console
- Start the app
- visit http://localhost:8080/h2-console
- Enter information as seen in application.yml
- Query the DB as you please