Spring HTTP Client Cache
The aim of this project is to provide a lightweight client HTTP cache for the Spring Framework, specifically RestTemplate. It’s implemented purely on top of Spring’s interfaces and doesn’t use any “heavy” caching library.
This code is inspired by the Apache HTTP Components.
TODO
- Add support for conditional requests.
- Add support for response revalidation.
- ...
Maven
Released versions are available in The Central Repository. Just add this artifact to your project:
<dependency>
<groupId>cz.jirutka.spring</groupId>
<artifactId>spring-http-client-cache</artifactId>
<version>1.0.0.M1</version>
</dependency>
However if you want to use the last snapshot version, you have to add the Sonatype OSS repository:
<repository>
<id>sonatype-snapshots</id>
<name>Sonatype repository for deploying snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
License
This project is licensed under Apache License 2.0.