Docs HomeMongoDB Manual

Sessions Commands会话命令

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.有关特定命令的详细信息,包括语法和示例,请单击该命令参考页的链接。

Command命令Description描述
abortTransactionAbort transaction. 中止事务。
New in version 4.0. 4.0版新增。
commitTransactionCommit transaction. 提交事务。
New in version 4.0. 4.0版新增。
endSessionsExpire sessions before the sessions' timeout period.在会话的超时期之前使会话过期。
killAllSessionsKill all sessions.终止所有会话。
killAllSessionsByPatternKill all sessions that match the specified pattern终止所有与指定模式匹配的会话
killSessionsKill specified sessions.终止指定的会话。
refreshSessionsRefresh idle sessions.刷新空闲会话。
startSessionStarts a new session.启动新会话。