Switch to plain fs based caching mechanism

This commit is contained in:
Matthias Rupp 2022-10-17 18:02:43 +02:00
parent d08475d5af
commit 6796462b13
6 changed files with 33 additions and 34 deletions

View file

@ -24,7 +24,7 @@ class AssetNotifier extends StateNotifier<List<AssetResponseDto>> {
final stopwatch = Stopwatch();
if (_assetCacheService.isValid() && state.isEmpty) {
if (await _assetCacheService.isValid() && state.isEmpty) {
stopwatch.start();
state = await _assetCacheService.get();
debugPrint("Reading assets from cache: ${stopwatch.elapsedMilliseconds}ms");