Release Notes
This release adds distributed locks for Redis and Valkey across all five Sage backends and standalone, master-replica, and cluster deployments.
-
Distributed locks.
client.lock[K]acquires a renewable lease before running the body and releases it afterward.withLockwaits up to the supplied timeout when a lock is busy.tryWithLockreturnsNonewithout running the body. Sage checks ownership during renewal and release, retries temporary connection and routing failures within the operation budget, and raisesSageException.LockLostif it loses ownership. See Distributed locks. -
Scala 3.9 LTS. Sage now requires Scala 3.9.0 or later. Projects using Scala 3.3 must upgrade their Scala version before adopting this release.
What's Changed
- Improve documentation and comments writing style by @ghostdogpr in #240
- Upgrade to kyo 1.0.0-RC6 and vendor the removed cats-effect binding by @ghostdogpr in #239
- Do not probe roles after the client is closed by @ghostdogpr in #241
- Improve documentation by @ghostdogpr in #253
- Distributed Locks by @ghostdogpr in #254
- Move to Scala 3.9.0 LTS by @ghostdogpr in #260