PersistSessionInstance

Implements IPersistSessionInstance

Default file-based implementation of IPersistSessionInstance.

Features:

  • Wraps PersistBase for atomic JSON writes
  • Uses frameName as entity ID within a per-strategy/exchange PersistBase
  • dispose is a no-op (memo cache is managed by PersistSessionUtils)
constructor(strategyName: string, exchangeName: string, frameName: string);
strategyName: string
exchangeName: string
frameName: string
_storage: any

Underlying file-based storage scoped to this context

waitForInit(initial: boolean): Promise<void>;

Initializes the underlying PersistBase storage.

readSessionData(): Promise<SessionData | null>;

Reads the persisted session data using frameName as the entity key.

writeSessionData(data: SessionData, _when: Date): Promise<void>;

Writes the session data using frameName as the entity key.

dispose(): void;

No-op for the default file-based implementation. Resource cleanup (memo cache invalidation) is handled by PersistSessionUtils.dispose().