Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
close ()
→ Future <void >
closes the cache manger
used to close the db
loadContactList (String pubKey )
→ Future <ContactList ? >
loadEvent (String id )
→ Future <Nip01Event ? >
loadEvents ({List <String > ? ids , List <String > ? pubKeys , List <int > ? kinds , Map <String , List <String > > ? tags , int ? since , int ? until , String ? search , int ? limit })
→ Future <List <Nip01Event > >
Load events from cache with flexible filtering
ids - list of event ids
pubKeys - list of authors pubKeys
kinds - list of kinds
tags - map of tags (e.g. {'p': 'pubkey1', 'e': 'eventid1'})
since - timestamp
until - timestamp
search - search string to match against content
limit - limit of results
returns list of events
loadFilterFetchedRangeRecords (String filterHash )
→ Future <List <FilterFetchedRangeRecord > >
Load all fetched range records for a filter hash
loadFilterFetchedRangeRecordsByRelay (String filterHash , String relayUrl )
→ Future <List <FilterFetchedRangeRecord > >
Load all fetched range records for a filter hash and relay
loadFilterFetchedRangeRecordsByRelayUrl (String relayUrl )
→ Future <List <FilterFetchedRangeRecord > >
Load all fetched range records for a relay (all filters)
loadMetadata (String pubKey )
→ Future <Metadata ? >
loadMetadatas (List <String > pubKeys )
→ Future <List <Metadata ? > >
loadNip05 (String pubKey )
→ Future <Nip05 ? >
loadNip05s (List <String > pubKeys )
→ Future <List <Nip05 ? > >
loadRelaySet (String name , String pubKey )
→ Future <RelaySet ? >
loadUserRelayList (String pubKey )
→ Future <UserRelayList ? >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllContactLists ()
→ Future <void >
removeAllEvents ()
→ Future <void >
removeAllEventsByPubKey (String pubKey )
→ Future <void >
removeAllFilterFetchedRangeRecords ()
→ Future <void >
Remove all filter fetched range records
removeAllMetadatas ()
→ Future <void >
removeAllNip05s ()
→ Future <void >
removeAllRelaySets ()
→ Future <void >
removeAllUserRelayLists ()
→ Future <void >
removeContactList (String pubKey )
→ Future <void >
removeEvent (String id )
→ Future <void >
removeFilterFetchedRangeRecords (String filterHash )
→ Future <void >
Remove all fetched range records for a filter hash
removeFilterFetchedRangeRecordsByFilterAndRelay (String filterHash , String relayUrl )
→ Future <void >
Remove fetched range records for a specific filter hash and relay
removeFilterFetchedRangeRecordsByRelay (String relayUrl )
→ Future <void >
Remove all fetched range records for a relay
removeMetadata (String pubKey )
→ Future <void >
removeNip05 (String pubKey )
→ Future <void >
removeRelaySet (String name , String pubKey )
→ Future <void >
removeUserRelayList (String pubKey )
→ Future <void >
saveContactList (ContactList contactList )
→ Future <void >
saveContactLists (List <ContactList > contactLists )
→ Future <void >
saveEvent (Nip01Event event )
→ Future <void >
saveEvents (List <Nip01Event > events )
→ Future <void >
saveFilterFetchedRangeRecord (FilterFetchedRangeRecord record )
→ Future <void >
Save a filter fetched range record
saveFilterFetchedRangeRecords (List <FilterFetchedRangeRecord > records )
→ Future <void >
Save multiple filter fetched range records
saveMetadata (Metadata metadata )
→ Future <void >
saveMetadatas (List <Metadata > metadatas )
→ Future <void >
saveNip05 (Nip05 nip05 )
→ Future <void >
saveNip05s (List <Nip05 > nip05s )
→ Future <void >
saveRelaySet (RelaySet relaySet )
→ Future <void >
saveUserRelayList (UserRelayList userRelayList )
→ Future <void >
saveUserRelayLists (List <UserRelayList > userRelayLists )
→ Future <void >
searchEvents ({List <String > ? ids , List <String > ? authors , List <int > ? kinds , Map <String , List <String > > ? tags , int ? since , int ? until , String ? search , int limit = 100 })
→ Future <Iterable <Nip01Event > >
search events
ids - list of event ids
authors - list of authors pubKeys
kinds - list of kinds
tags - map of tags
since - timestamp
until - timestamp
search - search string to match against content
limit - limit of results
returns list of events
searchMetadatas (String search , int limit )
→ Future <Iterable <Metadata > >
Search by name, nip05
toString ()
→ String
A string representation of this object.
inherited