2020-08-13 20:03:29 +00:00
|
|
|
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
|
|
|
|
2021-05-02 16:05:36 +00:00
|
|
|
class VideoCacheManager {
|
2020-08-13 20:03:29 +00:00
|
|
|
static const key = 'cached-video-data';
|
|
|
|
|
2021-05-02 16:05:36 +00:00
|
|
|
static CacheManager instance = CacheManager(
|
|
|
|
Config(
|
|
|
|
key,
|
|
|
|
maxNrOfCacheObjects: 50,
|
2022-08-24 12:08:52 +00:00
|
|
|
stalePeriod: const Duration(days: 3),
|
2021-05-02 16:05:36 +00:00
|
|
|
),
|
|
|
|
);
|
2020-08-13 20:03:29 +00:00
|
|
|
}
|