Skip to content

Project5E/quinine

Repository files navigation

Quinine

build status Jitpack Kotlin 1.3.72

So far, it's a Kotlin cache library using Caffeine as backend which might be change in the future.

Still, working in progress.

Example

Add this to build.gradle:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
	dependencies {
	        implementation 'com.moumoux:quinine:0.0.1'
	}

Usage

val cache: QuinineCache<Int, Int> = Quinine
        .newBuilder()
        .maximumSize(500)
        .build()
val cache: QuinineLoadingCache<Int, Int> = Quinine
        .newBuilder()
        .maximumSize(500)
        .build { loadingFun(it) }