Skip to content

v3.0.0-RC2

Pre-release
Pre-release

Choose a tag to compare

@yisraelU yisraelU released this 05 Oct 16:57
· 8 commits to series/3.x since this release
2258123

redis4cats 3.0.0-RC2

Second 3.0.0 prerelease. The headline is the adoption of Redis's consolidated command forms —
new Bloom filter support and a reworked sorted-set range API — plus the Lettuce 7.8 upgrade.
Still no stable 3.x tag, so breaking changes remain fair game until GA; please keep testing
against real workloads.

Breaking changes

  • Sorted-set range API unified (#1214): the eight zRangeByLex / zRangeByScore(WithScores) /
    zRevRange* methods are replaced by zRange(key, by) / zRangeWithScores(key, by) taking the new
    ZRangeBy selector (ByIndex / ByScore / ByLex, each with rev and, where Redis allows, limit),
    mirroring Redis 6.2's consolidation of these commands into ZRANGE. The by-rank convenience
    overloads (zRange(key, start, stop)) remain. Ranges are always given min..max — rev handles
    the ordering, matching the semantics of the removed zRev* methods. ByLex is deliberately not a
    scored selector, so zRangeWithScores over a lex range no longer typechecks.
    Migration example: zRevRangeByScore(k, ZRange(0, 2), limit = None) → zRange(k, ZRangeBy.ByScore(ZRange(0, 2), rev = true)).

New features

  • Bloom filter commands (#1209, thanks @ybasket!): the RedisBloom BF.* family — bfAdd,
    bfMAdd, bfExists, bfMExists, bfCard, bfInfo, bfInsert, bfReserve, and chunked
    dump/restore via bfScanDump/bfLoadChunk — with redis4cats' own argument and result types.

Correctness fixes

  • PubSubCommands.numSub no longer always throws; the pubsub-stats family now requires
    NonEmptyList (#1205).
  • LCS keys are now encoded through the codec rather than toString (#1214), making
    lcs/lcsLen/lcsIdx correct for non-string key codecs (signatures unchanged).

Dependencies

  • lettuce-core 7.8.0 (#1214), logback-classic 1.6.5, sbt-mima-plugin 1.2.1