newFileLocalCacheStore function
Creates a local FileCacheStore
path
: The base storage location for this storecodec
: TheStoreCodec
used to convert to/from a Map<String, dynamic>` representation to a binary representation
Implementation
Future<FileCacheStore> newFileLocalCacheStore(
{String? path, StoreCodec? codec}) {
FileSystem fs = const LocalFileSystem();
return FileAdapter.build(fs, path ?? fs.systemTempDirectory.path)
.then((adapter) => FileCacheStore(adapter, true, codec: codec));
}