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');
Implemented types

Constructors

LocalFileStore.new(String rootPath)
A simple file system implementation of a BaseStore.

Properties

hashCode int
The hash code for this object.
no setterinherited
rootPath String
The root path of the store.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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