https://github.com/daggerok/spring-cache-rest-service
Caching REST Services with spring easy, as 1, 2, 3... :) gradle, spring-mvc, spring-boot cache
https://github.com/daggerok/spring-cache-rest-service
Last synced: 3 months ago
JSON representation
Caching REST Services with spring easy, as 1, 2, 3... :) gradle, spring-mvc, spring-boot cache
- Host: GitHub
- URL: https://github.com/daggerok/spring-cache-rest-service
- Owner: daggerok
- Created: 2016-03-30T01:08:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-30T01:14:29.000Z (almost 10 years ago)
- Last Synced: 2025-01-10T00:42:04.885Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
spring-cache-rest-service [](https://travis-ci.org/daggerok/spring-cache-rest-service)
=========================
caching rest services with spring easy, as 1, 2, 3... :)
```sh
git clone ...
cd ...
gradle clean build bootRun
```
send twice same request
```sh
curl localhost:8080
curl localhost:8080/1
curl localhost:8080/1
curl localhost:8080
```
and verify log output for single result
```sh
2016-03-30 03:51:54.865 INFO 72609 --- [nio-8080-exec-1] com.daggerok.microrest.domain.BookRest : getting all...
2016-03-30 03:52:00.651 INFO 72609 --- [nio-8080-exec-3] com.daggerok.microrest.domain.BookRest : getting one 1
```
which is mean, that on first call result value cached, and method will not call again for same input