FileRecordingStore class

Filesystem-backed store. One JSON file per (hash) under rootDir.

Layout: rootDir/ ab/cd/abcdef…json

The two-level prefix avoids huge directories on filesystems that don't like 100k+ siblings.

Implemented types

Constructors

FileRecordingStore(Directory rootDir)

Properties

hashCode int
The hash code for this object.
no setterinherited
rootDir Directory
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flush() Future<void>
Force any buffered writes to flush. Called by the runner before exiting.
override
get(String hash) Future<ModelMessage?>
Returns the recorded response for hash, or null if no recording.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String hash, ModelMessage response) Future<void>
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).
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited