Redisson is an amazing client library for Redis DB implementing a lot of interesting feature on top of standard Redis API. However, some Redis APIs were not implemented (ex. XINFO), some Redis APIs were implemeted as-is and they require to improve (ex. XADD command accepts only one message per call and this approach makes batch ingestion into stream relatively slow).
This small library tries to implement some missing functions. The approach is very simple: every command is implemented as Lua script.
Just use it as a standard maven dependency (from Maven Central repository)
<dependency>
<groupId>tech.javajefe</groupId>
<artifactId>redisson-extensions</artifactId>
<version>0.0.4</version>
<type>jar</type>
</dependency>- Now
SCRIPT FLUSH, etc. does not make consequent executions fail.
- Batch
XADDnow returns list ofStreamMessageId-s it has inserted into the stream. - Changed Maven
groupId.
- Added few validations and unit tests for Batch
XADDcommand. - Implemented
XINFO GROUPScommand. - Implemented
getStreamLastDeliveredIdhelper method for Redis Streams. Returnslast-delivered-idfromXINFO GROUPScommand result. - Implemented
getStreamTailSizehelper method for Redis streams. Returns number of messages in the stream were not delivered to the reading group yet.
- Implemented batch
XADDcommand.
- Extend input parameters validation.
- API refactoring.