Class Requester

Manages API requests and caching for user information.

Constructors

Properties

base: BaseRequester = ...

Instance of the BaseRequester for handling HTTP requests.

cache: {
    userInfo: Map<string, ICacheData<IUserInfo>>;
    userProfileInfo: Map<string, ICacheData<IUserProfileInfo>>;
} = ...

Caches for all things needed.

manager: Manager

The Manager instance associated with this Requester.

Methods

  • Clears the cache for the specified data type or all cached data.

    Parameters

    • data: "all" | "userInfo" | "userProfileInfo" = "all"

      The type of data to clear from the cache (e.g., "userInfo" or "userProfileInfo"). Defaults to "all". If "all" is specified, all cache entries are cleared.

    Returns Requester

    The current instance of the Requester for method chaining.