Last active
March 28, 2023 10:23
-
-
Save prateek54/34225fbc3b263f65aebcc597f4581967 to your computer and use it in GitHub Desktop.
Init method for Download Cache
This file contains 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
val DOWNLOAD_CONTENT_DIRECTORY = "downloads" | |
val downloadContentDirectory = | |
File(getExternalFilesDir(null),DOWNLOAD_CONTENT_DIRECTORY) | |
var downloadCache = | |
SimpleCache(downloadContentDirectory, NoOpCacheEvictor(), StandaloneDatabaseProvider(this)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment