Documentation
    Preparing search index...

    Function createManifestCache

    • Create a manifest cache backed by the given persistence hooks.

      Parameters

      Returns ManifestCache

      A ManifestCache instance

      import { createManifestCache } from '@kehto/runtime';

      const cache = createManifestCache(manifestPersistence);
      cache.load();
      cache.set({ pubkey: 'abc...', dTag: 'chat', aggregateHash: 'dead', verifiedAt: Date.now() });
      cache.has('abc...', 'chat', 'dead'); // true