So far, it's a Kotlin cache library using Caffeine as backend which might be change in the future.
Still, working in progress.
Add this to build.gradle
:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.moumoux:quinine:0.0.1'
}
val cache: QuinineCache<Int, Int> = Quinine
.newBuilder()
.maximumSize(500)
.build()
val cache: QuinineLoadingCache<Int, Int> = Quinine
.newBuilder()
.maximumSize(500)
.build { loadingFun(it) }