ente/mobile/lib/core/cache/image_cache.dart
2024-03-01 12:25:37 +05:30

17 lines
287 B
Dart

import "dart:io";
import 'package:photos/core/cache/lru_map.dart';
class FileLruCache {
static final LRUMap<String, File> _map = LRUMap(25);
static File? get(String key) {
return _map.get(key);
}
static void put(String key, File value) {
_map.put(key, value);
}
}