mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-06 17:39:34 +00:00
something
This commit is contained in:
parent
dbf4ce1959
commit
a720c977c2
115 changed files with 8819 additions and 1 deletions
19
lib/db/cache_manager.dart
Normal file
19
lib/db/cache_manager.dart
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
|
||||
final imageCacheManager = CacheManager(
|
||||
Config(
|
||||
'image_cache_manager',
|
||||
stalePeriod: const Duration(days: 365 * 10),
|
||||
repo: JsonCacheInfoRepository(),
|
||||
maxNrOfCacheObjects: 1000,
|
||||
),
|
||||
);
|
||||
|
||||
final apiResponseCacheManager = CacheManager(
|
||||
Config(
|
||||
'api_response_cache_manager',
|
||||
stalePeriod: const Duration(days: 1),
|
||||
repo: JsonCacheInfoRepository(),
|
||||
maxNrOfCacheObjects: 1000,
|
||||
),
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue