Creates new state persistence instance.
Signal identifier (folder name under state/)
Bucket name (file name)
No-op for the default file-based implementation. Resource cleanup (memo cache invalidation) is handled by PersistStateUtils.dispose().
Reads the persisted state using bucketName as the entity key.
Promise resolving to state 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 state using bucketName as the entity key.
State data to persist
Promise that resolves when write is complete
Default file-based implementation of IPersistStateInstance.
Features:
Example