Creates new session persistence instance.
Strategy identifier
Exchange identifier
Frame identifier (storage subdirectory)
Trading pair symbol (part of the entity key)
Whether the session belongs to a backtest run (part of the entity key)
ReadonlybacktestReadonlyexchangeReadonlyframeReadonlystrategyReadonlysymbolNo-op for the default file-based implementation. Resource cleanup (memo cache invalidation) is handled by PersistSessionUtils.dispose().
Reads the persisted session data using the per-symbol entity key.
Promise resolving to session data or null if not found
Initializes the underlying PersistBase storage.
Whether this is the first initialization
Promise that resolves when initialization is complete
Writes the session data using the per-symbol entity key.
Session data to persist
Promise that resolves when write is complete
Default file-based implementation of IPersistSessionInstance.
Features:
Example