public interface SessionService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeSessionId(String oldSessionId,
String newSessionId)
Change the sessionId
|
int |
count()
Get the number of sessions
|
Session |
getSession(String sessionId)
Get session (by id)
|
void |
removeSession(String sessionId)
Delete session
|
void |
removeSessionBatch(List<String> sessionIdList)
Delete session (batch)
|
void |
saveSession(Session session)
Save the session
|
Session getSession(String sessionId)
sessionId - sessionIdvoid saveSession(Session session)
session - sessionvoid removeSession(String sessionId)
sessionId - sessionIdvoid removeSessionBatch(List<String> sessionIdList)
sessionIdList - sessionIdListvoid changeSessionId(String oldSessionId, String newSessionId)
oldSessionId - oldSessionIdnewSessionId - newSessionIdint count()
Copyright © 2023. All rights reserved.