vraptor-action-cache

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

Группа

Группа

br.com.caelum.vraptor
Идентификатор

Идентификатор

vraptor-action-cache
Последняя версия

Последняя версия

4.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

vraptor-action-cache
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

Ссылка на сайт

http://maven.apache.org
Система контроля версий

Система контроля версий

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

Скачать vraptor-action-cache

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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 :).

Версии библиотеки

Версия
4.0.2
4.0.1
4.0.0