public class RedisSessionDAO
extends org.apache.shiro.session.mgt.eis.AbstractSessionDAO
构造器和说明 |
---|
RedisSessionDAO() |
限定符和类型 | 方法和说明 |
---|---|
void |
delete(org.apache.shiro.session.Session session) |
protected java.io.Serializable |
doCreate(org.apache.shiro.session.Session session) |
protected org.apache.shiro.session.Session |
doReadSession(java.io.Serializable sessionId) |
java.util.Collection<org.apache.shiro.session.Session> |
getActiveSessions() |
long |
getExpire() |
JedisPoolManager |
getRedisManager() |
(专用程序包) byte[] |
getSessionDatasKey(org.apache.shiro.session.Session session)
session序列化后的对应的key
|
(专用程序包) byte[] |
getSessionIdKey(org.apache.shiro.session.Session session)
sessionId保存的key
|
(专用程序包) byte[] |
getSessionPermissionKey(java.lang.String uid)
权限对于的key
|
(专用程序包) byte[] |
getSessionStateKey(java.lang.String uid)
在线用户的key
|
java.lang.String |
getShiro_redis_session_pre() |
java.lang.String |
getShiro_shessionid_pre() |
java.lang.String |
getUid_pre() |
boolean |
isOnLine(java.lang.String uid) |
void |
returnBrokenResource(redis.clients.jedis.Jedis jedis) |
void |
returnResource(redis.clients.jedis.Jedis jedis) |
void |
setExpire(long expire) |
void |
setRedisManager(JedisPoolManager redisManager) |
void |
setShiro_redis_session_pre(java.lang.String shiro_redis_session_pre) |
void |
setShiro_shessionid_pre(java.lang.String shiro_shessionid_pre) |
void |
setUid_pre(java.lang.String uid_pre) |
void |
update(org.apache.shiro.session.Session session) |
public java.lang.String getShiro_redis_session_pre()
public void setShiro_redis_session_pre(java.lang.String shiro_redis_session_pre)
public java.lang.String getShiro_shessionid_pre()
public void setShiro_shessionid_pre(java.lang.String shiro_shessionid_pre)
public java.lang.String getUid_pre()
public void setUid_pre(java.lang.String uid_pre)
public long getExpire()
public void setExpire(long expire)
public JedisPoolManager getRedisManager()
public void setRedisManager(JedisPoolManager redisManager)
public void update(org.apache.shiro.session.Session session) throws org.apache.shiro.session.UnknownSessionException
org.apache.shiro.session.UnknownSessionException
byte[] getSessionDatasKey(org.apache.shiro.session.Session session)
session
- byte[] getSessionIdKey(org.apache.shiro.session.Session session)
session
- byte[] getSessionStateKey(java.lang.String uid)
uid
- byte[] getSessionPermissionKey(java.lang.String uid)
uid
- public void delete(org.apache.shiro.session.Session session)
public void returnResource(redis.clients.jedis.Jedis jedis)
public void returnBrokenResource(redis.clients.jedis.Jedis jedis)
public java.util.Collection<org.apache.shiro.session.Session> getActiveSessions()
public boolean isOnLine(java.lang.String uid)
protected java.io.Serializable doCreate(org.apache.shiro.session.Session session)
doCreate
在类中 org.apache.shiro.session.mgt.eis.AbstractSessionDAO
protected org.apache.shiro.session.Session doReadSession(java.io.Serializable sessionId)
doReadSession
在类中 org.apache.shiro.session.mgt.eis.AbstractSessionDAO