kernl API
    Preparing search index...

    Function cacheModule

    • The event cache: events kept between visits, asked before any relay by the shell's replaceable loader and the store's catalogue, with new events written back (D-030). Without it, or without an opener, the shell keeps events in memory only.

      Parameters

      • Optionalopen: EventCacheOpener

        Opens the cache, such as () => openEventCache(defaultWebCacheAdapters()) from @kernlize/modules/cache.

      Returns KernlModule<"cache", ConnectedEventCache>

      The module; its api is the connected cache, closed when the shell is destroyed.

      createKernl({ host, modules: [...kernlModules(), cacheModule(() => openEventCache(defaultWebCacheAdapters()))] });