kernl API
    Preparing search index...

    Function openEventCache

    • Open the first adapter that can open in this context. An adapter that rejects is reported through onFallback and the next one is tried; when none opens, the cache is kept in memory. It never rejects: the cache is an accelerator, and the shell runs without one (D-030).

      Parameters

      Returns Promise<EventCache>

      The opened cache.

      import { defaultWebCacheAdapters, openEventCache } from '@kernlize/core/cache';

      const cache = await openEventCache(defaultWebCacheAdapters(), {
      onFallback: (name, reason) => console.info(`${name} cache skipped: ${reason}`),
      });