Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICacheProviderImmutable<Data, Options>

The cache provider allows the cache to retrieve messages that it needs.

Type parameters

  • Data

  • Options

Hierarchy

Index

Methods

Methods

fetch

  • Retrieves a requested formation

    Parameters

    • id: Guid

      the globally unique formation identifying number

    • Optional options: Options

      the options that a provider can receive

    Returns AsyncIterableIterator<IFormationImmutable<Data>>

    the requested formation and, optionally, more formations to add to the cache. This allows the provider to be more efficient when retrieving messages across the network. For example, a conversation tree on the server can be tranversed and the known next formations can be returned.