2024-03-14 16:29:09 -04:00
|
|
|
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
|
|
|
|
|
|
|
|
|
/// The cache manager for full size images [ImmichRemoteImageProvider]
|
2024-04-25 00:30:32 -04:00
|
|
|
class RemoteImageCacheManager extends CacheManager {
|
2024-03-14 16:29:09 -04:00
|
|
|
static const key = 'remoteImageCacheKey';
|
|
|
|
|
static final RemoteImageCacheManager _instance = RemoteImageCacheManager._();
|
|
|
|
|
|
|
|
|
|
factory RemoteImageCacheManager() {
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-29 00:34:03 +05:30
|
|
|
RemoteImageCacheManager._() : super(Config(key, maxNrOfCacheObjects: 500, stalePeriod: const Duration(days: 30)));
|
2024-03-14 16:29:09 -04:00
|
|
|
}
|