1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-24 10:37:28 +02:00
immich/mobile/lib/modules/album/services/album_cache.service.dart

24 lines
757 B
Dart
Raw Normal View History

import 'package:immich_mobile/shared/models/album.dart';
import 'package:immich_mobile/shared/services/json_cache.dart';
2022-10-17 14:53:27 +02:00
@Deprecated("only kept to remove its files after migration")
class _BaseAlbumCacheService extends JsonCache<List<Album>> {
_BaseAlbumCacheService(super.cacheFileName);
2022-10-17 14:53:27 +02:00
@override
void put(List<Album> data) {}
2022-10-17 14:53:27 +02:00
@override
Future<List<Album>?> get() => Future.value(null);
2022-10-18 14:06:35 +02:00
}
@Deprecated("only kept to remove its files after migration")
class AlbumCacheService extends _BaseAlbumCacheService {
2022-10-18 14:06:35 +02:00
AlbumCacheService() : super("album_cache");
}
2022-10-17 14:53:27 +02:00
@Deprecated("only kept to remove its files after migration")
class SharedAlbumCacheService extends _BaseAlbumCacheService {
2022-10-18 14:06:35 +02:00
SharedAlbumCacheService() : super("shared_album_cache");
2022-10-17 14:53:27 +02:00
}