kernl API
    Preparing search index...

    Interface AttachedEventCache

    A cache wired to an event store: new events are written to it, and loaders read from it.

    interface AttachedEventCache {
        cacheRequest: (filters: Filter[]) => Promise<NostrEvent[]>;
        stop(): void;
    }
    Index
    cacheRequest: (filters: Filter[]) => Promise<NostrEvent[]>

    A loader cacheRequest: matching events marked as from the cache, or none when the cache cannot answer.

    • Stop writing new events to the cache.

      Returns void