ProtectedauthorsProtectedclaimsA weak map of events to claim reference counts
Protectedcreated_LRU cache of last events touched
ProtectedkindComposite index for kind+author queries (common pattern)
ProtectedkindsIndexes
ProtectedlogProtectedreplaceableA sorted array of replaceable events by address
ProtectedtagsProtectedbuildBuilds the indexes for any tag values that are not indexed yet with a single pass over the events
ProtectedgetProtectedgetProtectedgetProtectedgetProtectedgetGets the latest replaceable event
Optionalidentifier: stringGets the history of a replaceable event
Optionalidentifier: stringProtectedgetProtectedgetReturns the tag index sets for the values, building any that are missing
Checks if the database contains an event without touching it
Checks if the event set has a replaceable event
Optionalidentifier: stringIterates over all events by indexable tag and value
Iterates over all events by time
Removes events that are not claimed (free up memory)
Optionallimit: numberRemoves an event from the database and notifies all subscriptions
ProtectedremoveResets the event set
Returns a generator of unclaimed events in order of least used
An in-memory database of events