toCache2kLoader

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

Return

Cache2k loader

Sources

(source)
Link copied to clipboard