invalidateUserCache

On this page本页内容

Definition定义

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 } )
Required Access所需访问权限

You must have privileges that include the invalidateUserCache action on the cluster resource in order to use this command.您必须具有对群集资源执行invalidateUserCache操作的权限,才能使用此命令。

←  grantRolesToRolerevokePrivilegesFromRole →