Extensions for Redisson Java library
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.
How do I use it?
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>
Release notes
v 0.0.4
- Now
SCRIPT FLUSH
, etc. does not make consequent executions fail.
v 0.0.3
- Batch
XADD
now returns list ofStreamMessageId
-s it has inserted into the stream. - Changed Maven
groupId
.
v 0.0.2
- Added few validations and unit tests for Batch
XADD
command. - Implemented
XINFO GROUPS
command. - Implemented
getStreamLastDeliveredId
helper method for Redis Streams. Returnslast-delivered-id
fromXINFO GROUPS
command result. - Implemented
getStreamTailSize
helper method for Redis streams. Returns number of messages in the stream were not delivered to the reading group yet.
v 0.0.1
- Implemented batch
XADD
command.
TODO
- Extend input parameters validation.
- API refactoring.