kernl API
    Preparing search index...

    Function connectEventCache

    • Open the shell's event cache in the background and attach it to the store.

      The shell starts at once: a request that comes before the cache is open waits for it, and a cache that fails to open leaves the shell without one, because the cache is an accelerator (D-030).

      Parameters

      • store: Pick<IEventStoreStreams, "insert$">

        The shell's event store; its new events are written to the cache.

      • Optionalopen: EventCacheOpener

        Opens the cache, such as () => openEventCache(defaultWebCacheAdapters()); none when absent.

      Returns ConnectedEventCache

      The loader hook and the release.

      const cache = connectEventCache(eventStore, () => openEventCache(defaultWebCacheAdapters()));
      createAddressLoader(pool, { cacheRequest: cache.cacheRequest });