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.
Optional
Opens the cache, such as () => openEventCache(defaultWebCacheAdapters()) from @kernlize/modules/cache.
() => openEventCache(defaultWebCacheAdapters())
@kernlize/modules/cache
The module; its api is the connected cache, closed when the shell is destroyed.
createKernl({ host, modules: [...kernlModules(), cacheModule(() => openEventCache(defaultWebCacheAdapters()))] }); Copy
createKernl({ host, modules: [...kernlModules(), cacheModule(() => openEventCache(defaultWebCacheAdapters()))] });
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.