Update cache2k.version to v2.6.1.Final #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.0.Final
->2.6.1.Final
2.0.0.Final
->2.6.1.Final
Release Notes
cache2k/cache2k (org.cache2k:cache2k-api)
v2.6.1.Final
: "Cogee Beach"Compare Source
This change log lists the changes since 2.6.0.Final.
Fixes and Improvements
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
For Gradle users:
Using the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
For Gradle users:
Implementation details, tuning tips and hints on configuration can be found at: JCache - cache2k User Guide
v2.6.0.Final
: "Cogee Beach"Compare Source
This change log lists the changes since 2.4.1.Final.
New and Noteworthy
Updated benchmarks comparing with Caffeine 3.0.5, and EHCache3 3.9.6
Possible breakages
Changes that may break existing applications.
SpringCache2kManager.defaultSetup
throwsIllegalStateException
if not called before caches are addedSpringCache2kManager.defaultSetup
throwsIllegalStateException
if called twiceEXPIRY_NOT_ETERNAL
constant removed fromCache2kConfig
org.cache2k.config
packageSechduler.schedule
uses delay duration instead of absolute timeTimeReference.millis()
renamed toticks()
and additional conversion methods to support other time resolutions than millisecondsorg.cache2k.sharpExpirySafetyGapMillis
Tunable
SpringCache2kCacheManager.setCaches(Collection<Cache2kConfig<?, ?>> cacheConfigurationList)
BulkCacheLoader.BulkCallback.onLoadFailure(Set, Exception)
toonLoadFailure(Iterable, Exception)
Cache.expireAt()
andMutableCacheEntry.setExpiryTime()
: the maximum expiry time is capped by the specifiedexpireAfterWriteDuration
, this aligns the behavior with theExpiryPolicy
. The rationale is, that an (application) user, when settingexpireAfterWrite
expects that this duration is never exceeded.API Changes
CacheClosedException
CacheEventListenerException
Fixes and Improvements
eternal(true/false)
/MutableEntry.setExpiryTime
: Expiry can be modified, although no other expiry setting is present, or in other words: the timer support is available by default. Ifeternal(true)
is configured, timer support is disabled andCache.invoke
/MutableEntry.setExpiryTime
orCache.expireAt
cannot be usedCache.invoke
/MutableEntry.setExpiryTime
: has no effect if entry is not existingCache.invoke
/MutableEntry.getExpiryTime
always returns positive time valueLong.MAX_VALUE - 1
without overflowDuration
for duration parameters in theCache2kBuilder
InternalConfig
incache2k-core
for specific tuning values that should not be exposed in the public APISpringCache2kManager.setDefaultCacheNames()
addedSpringCache2kManager.addCache(String, Function)
SpringCache2kCacheManager.getCache
aligned with interface contract: returnsnull
if unknown cache name is requestedCacheClosedListener
: Wait forCompletableFuture
ExpiryPolicy
andAsyncCacheLoader
Cache.invoke
: Set expiry time correctly for exception propagation, in casesetException
andsetExpiry
is used atomicallyCacheInfo.getExpiryAfterWriteTicks
,CacheInfo.getTimeReference()
: addedCacheControl.getCapacityLimit
returns maximum weight correctly when weigher is presentCache.getAll
Cache.invoke
/Cache.invokeAll
Non Functional Improvements
ExpiryPolicyExampleTest
unit testCredits
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
For Gradle users:
Using the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
For Gradle users:
Implementation details, tuning tips and hints on configuration can be found at: JCache - cache2k User Guide
v2.4.1.Final
: "Port Philip"Compare Source
This change log lists the changes since 2.4.0.Final.
Fixes and Improvements
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
For Gradle users:
Note to Android users: The included jar files contain code that might only be needed in server environments (e.g. JMX support).
It is possible to strip unnecessary code. Example ProGuard rules can be found at Andriod - cache2k User Guide
Using the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
For Gradle users:
Implementation details, tuning tips and hints on configuration can be found at: JCache - cache2k User Guide
v2.4.0.Final
: "Port Philip"Compare Source
This change log lists the changes since 2.2.1.Final.
New and Noteworthy
This targets details to improve performance of big caches in multi core environments and minimizing the CPU impact on monitoring and frequent statistic polls.
Updated benchmarks comparing with Caffeine 3.0.4, and EHCache3 3.9.6
Fixes and Improvements
API Breakages
MutableCacheEntry.getValueOrNull
: removed, since wrongly introduced in version 2.0.Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
For Gradle users:
Note to Android users: The included jar files contain code that might only be needed in server environments (e.g. JMX support).
It is possible to strip unnecessary code. Example ProGuard rules can be found at Andriod - cache2k User Guide
Using the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
For Gradle users:
Implementation details, tuning tips and hints on configuration can be found at: [JCache - cache2k User Guide](https://cache2k.org/docs/latest/user-guide.html#jcache
v2.2.1.Final
: "Twofold Bay"Compare Source
This change log lists the changes since 2.2.0.Final.
Fixes and Improvements
Cache.entries
: throwsIlliegalStateException
ifremove
is called twice on the iterator.Cache.asMap
: aligned to the map contract,equals
,hashCode
cooperate with arbitrary maps,toString
is implemented identical to Java maps (e.g. HashMap)Credits
Many thanks for the valuable input to the contributors of this release:
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
Recommended for Gradle users:
Note to Android users: The included jar files contain code that might only be needed in server environments (e.g. JMX support).
It is possible to strip unnecessary code. Example ProGuard rules can be found at Andriod - cache2k User Guide
Using the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
For Gradle users:
Implementation details, tuning tips and hints on configuration can be found at: [JCache - cache2k User Guide](https://cache2k.org/docs/latest/user-guide.html#jcache
v2.2.0.Final
: - "Twofold Bay"Compare Source
This change log lists the complete changes since the last stable version 2.0.0.Final.
New and Noteworthy
BulkCacheLoader
andAsyncBulkCacheLoader
which are used by the cache operationsgetAll
,loadAll
,reloadAll
andinvokeAll
. The will get more optimizations and improvements in the next development releases. GH#166CoalescingBulkLoader
: combines multiple requests into a bulk requests or limitsbulk requests to a maximum size. Recommended when using a bulk loader and refresh ahead.
The
CoalescingBulkLoader
resides in the separate jarcache2k-addon
.Possible Breakages
Deprecated methods were removed (see below).
API changes
Feature
org.cache2k.integration
packageCache.loadAll
,Cache.reloadAll
withCacheOperationCompletionListener
AdvancedKeyValueSource
,KeyValueStore
expireAt
is removed. We keep this methodorg.cache2k.spi.Cache2kExtensionProvider
Fixes and Improvements
org.cache2k.annotation
forNullable
etc.Improved new bulk loader support.
Cache.computeIfAbsent
, GH#171AutoClosable
for async loadersCache.asMap()
: Align exception handlingcomputeIfPresent
,compute
withConcurrentMap
contractCredits
Many thanks for the valuable input to the contributors of this release:
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
Recommended for Gradle users:
Note to Android users: The included jar files contain code that might only be needed in server environments (e.g. JMX support).
It is possible to strip unnecessary code. Example ProGuard rules can be found at Andriod - cache2k User Guide
Using the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
For Gradle users:
Implementation details, tuning tips and hints on configuration can be found at: [JCache - cache2k User Guide](https://cache2k.org/docs/latest/user-guide.html#jcache
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.