SembastCacheManager constructor

SembastCacheManager(
  1. Database _database
)

Implementation

SembastCacheManager(this._database) {
  _eventsStore = sembast.stringMapStoreFactory.store('events');
  _metadataStore = sembast.stringMapStoreFactory.store('metadata');
  _contactListStore = sembast.stringMapStoreFactory.store('contact_lists');
  _relayListStore = sembast.stringMapStoreFactory.store('relay_lists');
  _nip05Store = sembast.stringMapStoreFactory.store('nip05');
  _relaySetStore = sembast.stringMapStoreFactory.store('relay_sets');
  _keysetStore = sembast.stringMapStoreFactory.store('keysets');
  _proofStore = sembast.stringMapStoreFactory.store('proofs');
  _mintInfoStore = sembast.stringMapStoreFactory.store('mint_infos');
  _secretCounterStore =
      sembast.stringMapStoreFactory.store('secret_counters');
  _filterFetchedRangeStore =
      sembast.stringMapStoreFactory.store('filter_fetched_ranges');
}