public class EhSessionStore extends Object implements Session.Store
Session.Store powered by an Ehcache. In order to use this store a
session cache is required.
ehcache.cache.session {
timeToIdle = 30m
}
In this example cache will expire after 30 minutes of inactivity. But of course, you can do
whatever you want/need.rnd| Constructor and Description |
|---|
EhSessionStore(net.sf.ehcache.Ehcache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Session session) |
void |
delete(String id) |
Session |
get(Session.Builder builder) |
void |
save(Session session) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateID@Inject
public EhSessionStore(@Named(value="session")
net.sf.ehcache.Ehcache cache)
public Session get(Session.Builder builder)
get in interface Session.Storepublic void save(Session session)
save in interface Session.Storepublic void create(Session session)
create in interface Session.Storepublic void delete(String id)
delete in interface Session.StoreCopyright © 2021. All rights reserved.