Protected
authorsProtected
claimsProtected
created_LRU cache of last events touched
A stream of events inserted into the database
Protected
kindsIndexes
Protected
logOptional
onA method thats called before a new event is inserted
A stream of events removed from the database
Protected
replaceableA sorted array of replaceable events by uid
Protected
tagsA stream of events that have been updated
Inserts an event into the database and notifies all subscriptions
Sets the claim on the event and touches it
Removes all claims on an event
Protected
getGets a single event based on id
Returns all events that match the filter
Protected
getIndex helper methods
Gets an array of replaceable events
Optional
d: stringProtected
getChecks if the database contains an event without touching it
Checks if the database contains a replaceable event without touching it
Optional
d: stringChecks if an event is claimed by anything
Remove the oldest events that are not claimed
Removes a claim from an event
Removes an event from the database and notifies all subscriptions
Moves an event to the top of the LRU cache
Inserts and event into the database and notifies all subscriptions that the event has updated
An in-memory database for nostr events NOTE: does not handle replaceable events