Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Created October 28, 2020 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ikhiloya/70e9b5d29ef74e60456485d8620572a0 to your computer and use it in GitHub Desktop.
Save Ikhiloya/70e9b5d29ef74e60456485d8620572a0 to your computer and use it in GitHub Desktop.
private fun cache(): Cache? {
val cacheSize = 5 * 1024 * 1024.toLong()
return Cache(instance!!.applicationContext.cacheDir, cacheSize)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment