Server side cache of users and their roles

Constructors

Properties

_globalObjectKey: string = 'MJ.SQLServerDataProvider.UserCache.Instance'
_users: UserInfo[]
_instance: UserCache

Accessors

Methods

  • This method will refresh the cache with the latest data from the database

    Parameters

    • pool: ConnectionPool

      the connection pool to use to refresh the cache

    • Optional autoRefreshIntervalMS: number

      optional, if provided, the cache will be refreshed every interval as specified - denominated in milliseconds

    Returns Promise<void>