CacheManager class abstract

Implementers

Constructors

CacheManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadContactList(String pubKey) Future<ContactList?>
loadEvent(String id) Future<Nip01Event?>
loadEvents({List<String> pubKeys, List<int> kinds, String? pTag, int? since, int? until}) Future<List<Nip01Event>>
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>
removeAllMetadatas() Future<void>
removeAllNip05s() Future<void>
removeAllRelaySets() Future<void>
removeAllUserRelayLists() Future<void>
removeContactList(String pubKey) Future<void>
removeEvent(String id) Future<void>
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>
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>
searchMetadatas(String search, int limit) Future<Iterable<Metadata>>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited