Package com.appmattus.layercache

Functions

fromCache2k
Link copied to clipboard
fun <Key : Any, Value : Any> Cache.Companion.fromCache2k(cache: Cache<Key, Value>): Cache<Key, Value>

Wrapper around Cache2k (https://cache2k.org/)

toCache2kLoader
Link copied to clipboard
suspend fun <Key : Any, Value : Any> Fetcher<Key, Value>.toCache2kLoader(): CacheLoader<Key, Value>

Convert a Fetcher into a Cache2k loader. Note the Fetcher should not return null