Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICacheOptions<Data, Options>

Type parameters

  • Data

  • Options

Hierarchy

  • ICacheOptions

Index

Properties

Properties

Optional data

data: FormationMapInit<Data>

Initial data to fill the cache with

Optional limit

limit: CheckedNumberAccepted

The maximum amount that the cache can hold

provider

provider: IProvider<Data, Options>

The provider that is used to find messages when they are not in the cache. It is highly recommended to use a provider that can retrieve the current message and any immediately obvious future messages.