PrefixStateStore class abstract interface

Files of saved prefix states, by key. A state is written by the engine (InferenceEngine.saveState) to a path the store gives, and read back from the path find returns.

Implementers

Properties

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

Methods

clear() → Future<void>
Removes every state.
find(PrefixKey key) → Future<String?>
The path of the state of key, marked as just used; null when there is none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(PrefixKey key, Future<void> write(String tempPath)) → Future<String>
Calls write with a temporary path to fill, then moves the file into place atomically and evicts old states; returns the state's path. When write throws, the temporary file is removed and the error rethrown.
remove(PrefixKey key) → Future<void>
Removes the state of key, if any.
toString() → String
A string representation of this object.
inherited

Operators

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