LocalFileStore class
A simple file system implementation of a BaseStore.
Given a rootPath, each key is mapped to a file relative to that path.
Note: LocalFileStore is not supported for web.
Example:
final store = LocalFileStore('/tmp');
Constructors
- LocalFileStore.new(String rootPath)
- A simple file system implementation of a BaseStore.
Properties
Methods
-
delete(
List< String> keys) → Future<void> -
Deletes the given keys.
override
-
get(
List< String> keys) → Future<List< Uint8List?> > -
Returns the values associated with the given keys.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
List< (String, Uint8List)> keyValuePairs) → Future<void> -
Sets the given key-value pairs.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
yieldKeys(
{String? prefix}) → Stream< String> -
Returns a stream that emits all the keys that match the given prefix.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited