sksamuel / aedile

Kotlin Wrapper for Caffeine
Apache License 2.0
170 stars 15 forks source link

Support bulk mapping functions #5

Closed jhuntbach-bc closed 1 year ago

jhuntbach-bc commented 1 year ago

With caffeine we can implement a loadAll method which allows us to bulk load the values for multiple keys in a single method call. The aedile Builder build method only allows us to implement single item loading.

fun build(compute: suspend (K) -> V): LoadingCache<K, V>
sksamuel commented 1 year ago

@jhuntbach-bc does this do what you want? https://github.com/sksamuel/aedile/pull/6