Coherence Spring 3.2.0 Released
The Coherence team is pleased to announce the release of Coherence Spring 3.2.0. This is technically a minor release but as we upgraded the base Spring Boot dependency from 2.5.x
to 2.6.7
, we decided to make the jump to 3.2.0
.
This release includes a slur of minor dependency and plugin updates, including the update of Coherence CE to the latest 21.12.4
release.
Improved Synchronized Caching
Feature-wise, we improved Spring’s Cache Abstraction support by adding configurable locking support when using Synchronized Caching via @Cacheable(sync=true)
. This allows you to specify the following additional 3 (optional) properties when configuring the CoherenceCacheManager
using the CoherenceCacheConfiguration
object:
lockTimeout
Allows you to specify the time (in milliseconds) to wait until a lock of the underlying Coherence cache could be obtained. The default value is 0
, meaning that the lock attempt will return immediately. A value of -1
means that the underlying locking operation will block indefinitely until the lock could be obtained.
lockEntireCache
Instead of locking just the cache entry for the specified key, you can also have the entire cache locked. This is usually not recommended and by default this boolean property defaults to false.
useLocks
This boolean property is true
by default but can be set to false
to disable locking for caches. This might be useful in situation where your application accesses Coherence via Coherence*Extend or gRPC Client, as locking is not recommended in those scenarios.
All these properties are also available via Spring Boot properties. For more information, please see the chapter on caching in the Coherence Spring reference guide.
SonarCloud integration
Starting with this release, we also provide SonarCloud integration to provide additional code quality and code security metrics. Check out the dashboard for details.
Bug Fixes
As part of the release, we fixed several issues, such as SonarCloud reported bugs, several circular Spring Bean dependencies and two issues around Spring’s Cache Abstraction support. Check out the release notes for further details.
And as always, please …
Contribute to Coherence Spring!
We would love to hear from you! Please take Coherence Spring and Coherence CE for a spin! If you have questions, please join our Slack channel or ask questions on Stack Overflow. If you see missing features or if you have any other suggestions for improvement please contact us, e.g. via Twitter @OracleCoherence or feel free to file a GitHub issue. Contributions are always welcome!