Recapp Code Reference
    Preparing search index...

    Class StoringActor<Entity, Message, Result>Abstract

    Type Parameters

    • Entity extends Document & { updated: Timestamp }
    • Message
    • Result

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    collectionName: string
    connector: DbClient = ...
    state: {
        cache: Map<string & BRAND<"UID">, Entity>;
        lastTouched: Map<string & BRAND<"UID">, Timestamp>;
    }

    Methods

    • Runs after the actor was started and is ready to receive messages.

      Returns Promise<void>

    • Runs before the actor gets shut down by the actor system

      Returns Promise<void>

    • Parameters

      • from: ActorRef

      Returns Promise<
          [
              UserRole: AccessRole,
              UserID: string & BRAND<"UID">,
              IsTemporaryAccount: boolean,
          ],
      >