Package cn.dev33.satoken.session.raw
Class SaRawSessionDelegator
java.lang.Object
cn.dev33.satoken.session.raw.SaRawSessionDelegator
SaSession 读写工具类 委托
- Since:
- 1.42.0
- Author:
- click33
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSessionById(Object valueId) 删除指定 SaSessiongetSessionById(Object valueId) 获取指定 SaSession, 如果此 SaSession 尚未在 DB 创建,则新建并返回getSessionById(Object valueId, boolean isCreate) 获取指定 SaSession 对象, 如果此 SaSession 尚未在 Cache 创建,isCreate 参数代表是否则新建并返回boolean判断:指定 SaSession 是否存在
-
Field Details
-
type
raw session 类型
-
-
Constructor Details
-
SaRawSessionDelegator
-
-
Method Details
-
isExists
判断:指定 SaSession 是否存在- Parameters:
valueId- /- Returns:
- 是否存在
-
getSessionById
获取指定 SaSession 对象, 如果此 SaSession 尚未在 Cache 创建,isCreate 参数代表是否则新建并返回- Parameters:
valueId- /isCreate- 如果此 SaSession 尚未在 DB 创建,是否新建并返回- Returns:
- SaSession 对象
-
getSessionById
获取指定 SaSession, 如果此 SaSession 尚未在 DB 创建,则新建并返回- Parameters:
valueId- /- Returns:
- SaSession 对象
-
deleteSessionById
删除指定 SaSession- Parameters:
valueId- /
-