Class AresCachedManager<Key, Value>Abstract

Abstract class that serves as the foundation for managing cached data. Inherits basic manager functionalities and introduces caching capabilities.

Type Parameters

  • Key

    The type of keys used for caching.

  • Value

    The type of values associated with the cached keys.

Hierarchy

Constructors

Properties

results: AresCachedResults = ...

Results instance associated with the manager.

cache: Collection<Key, Value>

The collection of cached items.

scope: LogScopes

Represents the scope of the logger, enabling categorization and filtering of log entries.

client: AresClient

Represents the client that instantiated this class.

Accessors

  • get isProduction(): boolean
  • Indicates whether the application is running in production mode.

    Returns boolean

    true if the application is running in production mode; otherwise, false.

Methods

  • Validates whether the entry meets the generic conditions for the manager cache.

    Parameters

    • key: Key

      The key to validate.

    • value: Value

      The value to validate.

    Returns boolean

    true if the entry meets the generic conditions for the manager cache; otherwise false.

  • Validates whether the entry meets the specific conditions for the manager cache.

    Parameters

    • key: Key
    • value: Value

      The value to validate.

    Returns boolean

    true if the entry meets the specific conditions for the manager cache; otherwise false.

    Remarks

    Method used in further entry validation, checking for specific conditions based on the entry type.

  • Validates whether the value meets the conditions for the manager cache.

    Parameters

    • key: Key
    • value: Value

      The value to validate.

    Returns boolean

  • Sets up the manager by supplying essential data and performing preparatory tasks.

    Parameters

    Returns Awaitable<void>

    Remarks

    Orchestrates the initialization process, encompassing the setup of foundational data and execution of preparatory tasks. This ensures that the manager is equipped to handle interactions and various operations effectively.

Generated using TypeDoc