- 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.