Invalidation on logout and timing measurements

This commit is contained in:
Matthias Rupp
2022-10-16 09:50:31 +02:00
parent 894eea739e
commit 75d8ca1306
3 changed files with 22 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ class AssetCacheService {
_cacheBox.get(assetListCachedAssets) is String;
}
void invalidate() {
_cacheBox.clear();
}
void putAssets(List<AssetResponseDto> assets) {
final mapList = assets.map((e) => e.toJson()).toList();
final jsonString = json.encode(mapList);