Created
June 6, 2021 01:39
-
-
Save VB10/9ec90229b0aec7d6a2aaafd5dce26468 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class ItemCache { | |
final String _localPath = 'vb10'; | |
final ItemModel item; | |
ItemCache(this.item); | |
Future<void> cacheIt(); | |
Future<Directory> createDirectory(); | |
Future<File> createDirectoryWithPath(); | |
Future<ItemModel?> takeItemWithCache(int id); | |
Future<List<ItemModel>> getAllDatas(); | |
Future<void> clearAllDatas(); | |
Future<void> clearAllDatasWithExpiry(); | |
int get _expiryValue => 7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment