vraptor-action-cache

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

GroupId

GroupId

br.com.caelum.vraptor
ArtifactId

ArtifactId

vraptor-action-cache
Last Version

Last Version

4.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

vraptor-action-cache
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://maven.apache.org
Source Code Management

Source Code Management

http://github.com/asouza/vraptor-action-cache

Download vraptor-action-cache

How to add to project

<!-- https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-action-cache/ -->
<dependency>
    <groupId>br.com.caelum.vraptor</groupId>
    <artifactId>vraptor-action-cache</artifactId>
    <version>4.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-action-cache/
implementation 'br.com.caelum.vraptor:vraptor-action-cache:4.0.2'
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-action-cache/
implementation ("br.com.caelum.vraptor:vraptor-action-cache:4.0.2")
'br.com.caelum.vraptor:vraptor-action-cache:jar:4.0.2'
<dependency org="br.com.caelum.vraptor" name="vraptor-action-cache" rev="4.0.2">
  <artifact name="vraptor-action-cache" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.caelum.vraptor', module='vraptor-action-cache', version='4.0.2')
)
libraryDependencies += "br.com.caelum.vraptor" % "vraptor-action-cache" % "4.0.2"
[br.com.caelum.vraptor/vraptor-action-cache "4.0.2"]

Dependencies

compile (4)

Group / Artifact Type Version
br.com.caelum : vraptor jar 4.1.0-RC3
log4j : log4j jar 1.2.17
org.slf4j : slf4j-log4j12 jar 1.7.5
net.sf.ehcache : ehcache-core jar 2.2.0

provided (7)

Group / Artifact Type Version
org.jboss.weld.servlet : weld-servlet jar 2.1.1.Final
org.jboss.weld.se : weld-se-core jar 2.1.1.Final
org.mortbay.jetty : servlet-api jar 3.0.20100224
org.glassfish.web : javax.el jar 2.2.4
javax.validation : validation-api jar 1.1.0.Final
javax.servlet : jstl jar 1.2
javax.servlet.jsp : jsp-api jar 2.2

test (4)

Group / Artifact Type Version
junit : junit jar 4.8.2
org.mockito : mockito-core jar 1.8.5
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

VRaptor action cache

The main goal is to enable the cache of a html generated by a response of your controller's method.

Installing

Add to your pom:

<dependency>
	<groupId>br.com.caelum.vraptor</groupId>
	<artifactId>vraptor-action-cache</artifactId>
	<version>4.0.0-SNAPSHOT</version>
</dependency>

Examples

  public class HomeController {
    @Cached(key="homeindex",duration=180,idleTime=60)
    public void index(){
      System.out.println("Passando por aqui...");
    }
  }
  

After the first request, the html generated by this method will be cached. The time that the html will be in cache, is 180 seconds. If nobody tries to access this url in 60 seconds, the page will be dropped. This is why we have the idleTime :).

Versions

Version
4.0.2
4.0.1
4.0.0