put method

  1. @override
Future<void> put(
  1. String hash,
  2. ModelMessage response
)
override

Stores a new recording under hash. If a recording already exists, implementations may overwrite or no-op (FileRecordingStore overwrites — useful when re-recording after a known-broken capture).

Implementation

@override
Future<void> put(String hash, ModelMessage response) async {
  _pendingWrites[hash] = response;
  // Trigger a background flush; callers don't need to await each put.
  _scheduleFlush();
}