redisson-extensions

Extensions for Redisson Java library (a client for Redis DB)

License

License

Categories

Categories

Redis Data Databases Redisson
GroupId

GroupId

tech.javajefe
ArtifactId

ArtifactId

redisson-extensions
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

redisson-extensions
Extensions for Redisson Java library (a client for Redis DB)
Project URL

Project URL

https://github.com/javajefe/redisson-extensions
Source Code Management

Source Code Management

https://github.com/javajefe/redisson-extensions

Download redisson-extensions

How to add to project

<!-- https://jarcasting.com/artifacts/tech.javajefe/redisson-extensions/ -->
<dependency>
    <groupId>tech.javajefe</groupId>
    <artifactId>redisson-extensions</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/tech.javajefe/redisson-extensions/
implementation 'tech.javajefe:redisson-extensions:0.0.4'
// https://jarcasting.com/artifacts/tech.javajefe/redisson-extensions/
implementation ("tech.javajefe:redisson-extensions:0.0.4")
'tech.javajefe:redisson-extensions:jar:0.0.4'
<dependency org="tech.javajefe" name="redisson-extensions" rev="0.0.4">
  <artifact name="redisson-extensions" type="jar" />
</dependency>
@Grapes(
@Grab(group='tech.javajefe', module='redisson-extensions', version='0.0.4')
)
libraryDependencies += "tech.javajefe" % "redisson-extensions" % "0.0.4"
[tech.javajefe/redisson-extensions "0.0.4"]

Dependencies

compile (3)

Group / Artifact Type Version
org.redisson : redisson jar 3.10.2
com.google.code.gson : gson jar 2.8.5
org.slf4j : slf4j-api jar 1.7.25

test (4)

Group / Artifact Type Version
org.codehaus.groovy : groovy-all jar 2.5.6
org.spockframework : spock-core jar 1.2-groovy-2.5
org.testcontainers : spock jar 1.10.6
org.slf4j : slf4j-simple jar 1.7.25

Project Modules

There are no modules declared in this project.

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 of StreamMessageId-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. Returns last-delivered-id from XINFO 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.

Versions

Version
0.0.4