Interface IUserInfoCacheExpirationResolver

Determines whether a cached user record has expired.

interface IUserInfoCacheExpirationResolver {
    recordExpired(cacheTime: number, record: IUserInfo): Promise<boolean>;
}

Implemented by

Methods

  • Checks if the given user record is expired based on its cache time.

    Parameters

    • cacheTime: number

      Timestamp when the record was cached.

    • record: IUserInfo

      The user information to evaluate.

    Returns Promise<boolean>

    true if record is expired; otherwise false;