Spring HTTP client cache

A very simple HTTP cache for the Spring RestTemplate.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

cz.jirutka.spring
ArtifactId

ArtifactId

spring-http-client-cache
Last Version

Last Version

1.0.0.M1
Release Date

Release Date

Type

Type

jar
Description

Description

Spring HTTP client cache
A very simple HTTP cache for the Spring RestTemplate.
Project URL

Project URL

http://github.com/jirutka/spring-http-client-cache
Source Code Management

Source Code Management

http://github.com/jirutka/spring-http-client-cache

Download spring-http-client-cache

How to add to project

<!-- https://jarcasting.com/artifacts/cz.jirutka.spring/spring-http-client-cache/ -->
<dependency>
    <groupId>cz.jirutka.spring</groupId>
    <artifactId>spring-http-client-cache</artifactId>
    <version>1.0.0.M1</version>
</dependency>
// https://jarcasting.com/artifacts/cz.jirutka.spring/spring-http-client-cache/
implementation 'cz.jirutka.spring:spring-http-client-cache:1.0.0.M1'
// https://jarcasting.com/artifacts/cz.jirutka.spring/spring-http-client-cache/
implementation ("cz.jirutka.spring:spring-http-client-cache:1.0.0.M1")
'cz.jirutka.spring:spring-http-client-cache:jar:1.0.0.M1'
<dependency org="cz.jirutka.spring" name="spring-http-client-cache" rev="1.0.0.M1">
  <artifact name="spring-http-client-cache" type="jar" />
</dependency>
@Grapes(
@Grab(group='cz.jirutka.spring', module='spring-http-client-cache', version='1.0.0.M1')
)
libraryDependencies += "cz.jirutka.spring" % "spring-http-client-cache" % "1.0.0.M1"
[cz.jirutka.spring/spring-http-client-cache "1.0.0.M1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.1
net.jcip : jcip-annotations jar 1.0
org.slf4j : slf4j-api jar 1.7.5

provided (2)

Group / Artifact Type Version
org.springframework : spring-web jar 3.1.1.RELEASE
org.projectlombok : lombok jar 1.12.2

test (5)

Group / Artifact Type Version
org.spockframework : spock-core jar 0.7-groovy-2.0
cglib : cglib-nodep jar 3.1
org.springframework : spring-test jar 3.2.0.RELEASE
ch.qos.logback : logback-classic jar 1.1.1
org.codehaus.groovy : groovy jar 2.2.1

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.0.M1