Skip to content

jirutka/spring-http-client-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring HTTP Client Cache

Build Status Coverage Status Maven Central

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.

About

A very simple HTTP cache for the Spring’s RestTemplate.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages