Provider for caching user information to optimize repeated lookups.

Implements

Constructors

Methods

  • Clears all cached user information.

    Returns Promise<void>

  • Retrieves cached user information for single user with specified identifier.

    Parameters

    • _id: string
    • Optional_type: null | string

    Returns Promise<null | IUserInfo>

    User information or null user not found by identifier.

  • Retrieves cached user information for multiple users with specified identifiers.

    Parameters

    • _ids: string[]
    • Optional_type: null | string

    Returns Promise<IUserInfo[]>

    A collection of user information for users that are found.

  • Caches a single user information object.

    Parameters

    Returns Promise<void>

  • Caches multiple user information objects.

    Parameters

    • _info: IUserInfo[]
    • Optional_type: null | string

    Returns Promise<void>