Repository navigation
v3.0.0-RC2
Pre-release
Pre-release
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 byzRange(key, by)/zRangeWithScores(key, by)taking the new
ZRangeByselector (ByIndex/ByScore/ByLex, each withrevand, where Redis allows,limit),
mirroring Redis 6.2's consolidation of these commands intoZRANGE. The by-rank convenience
overloads (zRange(key, start, stop)) remain. Ranges are always givenmin..max—revhandles
the ordering, matching the semantics of the removedzRev*methods.ByLexis deliberately not a
scored selector, sozRangeWithScoresover 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 viabfScanDump/bfLoadChunk— with redis4cats' own argument and result types.
Correctness fixes
PubSubCommands.numSubno longer always throws; the pubsub-stats family now requires
NonEmptyList(#1205).LCSkeys are now encoded through the codec rather thantoString(#1214), making
lcs/lcsLen/lcsIdxcorrect 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