- Fixes the same covariance issue for
asLoadingCache
andasBulkLoadingCache
.
- 2.0.0 had an issue with the covariance of the Caffeine builders for
asCache
when usingexpireAfter
- 2.0.0 was unable to compile when using an eviction or removal listener. This release fixes that by adding
withEvictionListener
andwithRemovalListener
extension functions to theCaffeine
builder.
- Deprecated cacheBuilder in favor of extending
Caffeine.newBuilder
. See README for full details.- New extension functions for
Caffeine
builder support more natural coroutine operations.
- New extension functions for
- Deprecated
aedile-micrometer
module in favor of Micrometer's native support for Caffeine. - Fixed coroutine cancellation propagation #30
- Added
getOrNull
with compute that allows for the compute function to return nulls.
- Deprecated
caffeineBuilder
forcacheBuilder
. This new builder defaults to using the calling context for compute function excecution. To use the previous behaviour, usecacheBuilder
, and setuseCallingContext
to false. The deprecated builder retains the previous behaviour. - Added
getOrNull
as a non suspendable version ofgetIfPresent
. - Added
getAll
with bulk compute.
- Added support for custom schedulers
- Added support for
softValues
- Added support for
removalListener
- Updated dependencies on
caffeine
to 3.1.6 andmicrometer
(in the optionalaedile-micrometer
module) to 1.11.0
- Added support for
buildAll
.
- Added
contains
operation to return a Boolean if the cache contains a given key - Added
invalidate
andinvalidateAll
which will block and clear the cache of a single entry or all entries - Added
asDeferredMap
to return a representation of the Cache as a Map ofDeferred
values. - Added operator overloaded
put
operation which inserts a precomputed value
- Use supervisor scope for suspend computations #1
- Support weak keys.
- Support custom
CoroutineScope
. - EvictionListener function should be suspendable.
- Support
Expiry
interface in builder. - Support
StatsCounter
in builder.
Cache
should supportgetAll
- Support
LoadingCache
micrometer metrics.
- First published release.