invalidateUserCache

Definition

  • invalidateUserCache

New in version 2.6.

Flushes user information from in-memory cache, including removal of each user’scredentials and roles. This allows you to purge the cacheat any given moment, regardless of theinterval set in the userCacheInvalidationIntervalSecs parameter.

invalidateUserCache has the following syntax:

  1. db.runCommand( { invalidateUserCache: 1 } )

Required Access

You must have privileges that include theinvalidateUserCache action on the cluster resource in orderto use this command.