Skip to content

Instantly share code, notes, and snippets.

@crypticminds
Created January 4, 2020 20:37
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 crypticminds/73634b7d8f07d1c3c04597ea2d6e0820 to your computer and use it in GitHub Desktop.
Save crypticminds/73634b7d8f07d1c3c04597ea2d6e0820 to your computer and use it in GitHub Desktop.
package com.arcane.coldstorage.application
import android.app.Application
import com.arcane.coldstoragecache.cache.Cache
class Application : Application() {
/**
* The cache needs to be initialized here allowing the
* cache to pull any available data from shared preference and
* load it into the memory.
*/
override fun onCreate() {
super.onCreate()
Cache.initialize(context = applicationContext)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment