Create a manifest cache backed by the given persistence hooks.
Storage backend for manifest data
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 Copy
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
Create a manifest cache backed by the given persistence hooks.