Skip to content

Instantly share code, notes, and snippets.

@BenHenning
Last active September 13, 2019 07:23
Show Gist options
  • Save BenHenning/41b4d9674c623ad675d4dc641e160e37 to your computer and use it in GitHub Desktop.
Save BenHenning/41b4d9674c623ad675d4dc641e160e37 to your computer and use it in GitHub Desktop.
@Singleton
class UserAppHistoryController @Inject constructor(
cacheStoreFactory: PersistentCacheStore.Factory
) {
// Use cacheStoreFactory...
}
class PersistentCacheStore private constructor() {
class Factory @Inject constructor (private val context: Context) {
// Use context...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment