| Package | Description |
|---|---|
| org.osgl.http |
| Modifier and Type | Method and Description |
|---|---|
H.Session |
H.Session.cache(String key,
Object obj)
Store an object into cache using key specified.
|
H.Session |
H.Session.cache(String key,
Object obj,
int expiration)
Store an object into cache with expiration specified
|
H.Session |
H.Session.cacheFor10Min(String key,
Object obj)
Store an object into cache for 10 minutes
|
H.Session |
H.Session.cacheFor1Hr(String key,
Object obj)
Store an object into cache for 1 hour
|
H.Session |
H.Session.cacheFor1Min(String key,
Object obj)
Store an object into cache for 1 minutes
|
H.Session |
H.Session.cacheFor30Min(String key,
Object obj)
Store an object into cache for 30 minutes
|
static H.Session |
H.Session.current()
Return a session instance of the current execution context,
For example from a
ThreadLocal |
H.Session |
H.Session.evict(String key)
Evict an object from cache
|
H.Session |
H.Session.expireOn(long expiry)
Set session expiry in milliseconds
|
static H.Session |
H.Session.resolve(H.Cookie sessionCookie,
int ttl)
Resolve a Session instance from a session cookie
|
| Modifier and Type | Method and Description |
|---|---|
static void |
H.Session.current(H.Session session)
Set a session instance into the current execution context,
for example into a
ThreadLocal |
Copyright © 2017. All Rights Reserved.