Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICacheProviderMutable<Data, Options>

An immutable cache

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.