On this page本页内容
invalidateUserCache
Flushes user information from in-memory cache, including removal of each user's credentials and roles. 从内存缓存中刷新用户信息,包括删除每个用户的凭据和角色。This allows you to purge the cache at any given moment, regardless of the interval set in the 这允许您在任何给定时刻清除缓存,而不考虑userCacheInvalidationIntervalSecs
parameter.userCacheInvalidationIntervalSecs
参数中设置的时间间隔。
invalidateUserCache
has the following syntax:具有以下语法:
db.runCommand( { invalidateUserCache: 1 } )
You must have privileges that include the 您必须具有对群集资源执行invalidateUserCache
action on the cluster resource in order to use this command.invalidateUserCache
操作的权限,才能使用此命令。