Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Latest commit

 

History

History
32 lines (24 loc) · 657 Bytes

File metadata and controls

32 lines (24 loc) · 657 Bytes

ehcache session store

dependency

<dependency>
  <groupId>org.jooby</groupId>
  <artifactId>jooby-ehcache</artifactId>
  <version>{{version}}</version>
</dependency>

usage

This module provides an EhSessionStore. In order to use the EhSessionStore all you have to do is define a session cache:

ehcache.cache.session {
  # cache will expire after 30 minutes of inactivity
  timeToIdle = 30m
}

And then register the EhSessionStore:

{
  session(EhSessionStore.class);
}