Teleforge API Reference - v0.1.0
    Preparing search index...

    Class MemoryStorageAdapter

    In-memory storage adapter for coordinated flow state.

    Entries expire automatically on access and support optimistic locking through compareAndSet().

    Implements

    Index

    Constructors

    Methods

    • Parameters

      • key: string
      • expectedVersion: number
      • state: UserFlowState
      • ttl: number = ...

      Returns Promise<boolean>

    • Parameters

      • key: string

      Returns Promise<void>

    • Parameters

      • key: string
      • ttl: number

      Returns Promise<void>

    Properties

    defaultTTL: number
    namespace?: string