AppleSauce
    Preparing search index...

    Interface IEventMemory

    The base interface for the in-memory database of events

    interface IEventMemory {
        add(event: NostrEvent): NostrEvent;
        claim(event: NostrEvent): void;
        clearClaim(event: NostrEvent): void;
        getByFilters(filters: Filter | Filter[]): NostrEvent[];
        getEvent(id: string): NostrEvent | undefined;
        getReplaceable(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): NostrEvent | undefined;
        getReplaceableHistory(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): NostrEvent[] | undefined;
        getTimeline(filters: Filter | Filter[]): NostrEvent[];
        hasEvent(id: string): boolean;
        hasReplaceable(kind: number, pubkey: string, identifier?: string): boolean;
        isClaimed(event: NostrEvent): boolean;
        remove(event: string | NostrEvent): boolean;
        removeClaim(event: NostrEvent): void;
        touch(event: NostrEvent): void;
        unclaimed(): Generator<NostrEvent>;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods