mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Invalidation on logout and timing measurements
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user