Documentation
    Preparing search index...

    Interface CacheServiceOptions

    Options for creating a cache service.

    const cacheService = createCacheService({
    query: (filters) => myIndexedDB.query(filters),
    store: (event) => myIndexedDB.store(event),
    isAvailable: () => true,
    });
    interface CacheServiceOptions {
        isAvailable(): boolean;
        query(filters: NostrFilter[]): Promise<NostrEvent[]>;
        store(event: NostrEvent): void;
    }
    Index

    Methods