The manager of a Guilded data model.

Example

new BaseManager(client);

Type Parameters

  • K = void

  • V = void

Hierarchy

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • K = void

    • V = void

    Parameters

    • client: Client

      The client the manager belongs to.

    • Optional maxCache: number

      The maximum cache size of the manager.

    Returns BaseManager<K, V>

Properties

cache: CacheCollection<K, V>

This cache of the manager.

client: Client

Methods

  • Set the maximum cache size of the manager.

    Returns

    The manager.

    Example

    manager.setMaxCache(100);
    

    Parameters

    • maxSize: number

      The maximum size of the cache.

    Returns BaseManager<K, V>