Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

Helidon CDI extension for Redis

Integrates Redisson with Helidon framework.

Supports Helidon 1.4.x - 3.x.x

Usage

1. Add redisson-helidon dependency into your project:

Maven

<dependency>
    <groupId>org.redisson</groupId>
    <!-- for Helidon v1.4.x - v2.5.x -->
    <artifactId>redisson-helidon-20</artifactId>
    <!-- for Helidon v3.0.x -->
    <artifactId>redisson-helidon-30</artifactId>
    <version>3.19.3</version>
</dependency>

Gradle

// for Helidon v1.4.x - v2.5.x
compile 'org.redisson:redisson-helidon-20:3.19.3'
// for Helidon v3.x.x
compile 'org.redisson:redisson-helidon-30:3.19.3'

2. Add settings into META-INF/microprofile-config.properties file

Config structure is a flat Redisson YAML configuration - single mode, replicated mode, cluster mode, sentinel mode, proxy mode

Below is the configuration for Redisson instance named simple.

org.redisson.Redisson.simple.singleServerConfig.address=redis://127.0.0.1:6379
org.redisson.Redisson.simple.singleServerConfig.connectionPoolSize=64
org.redisson.Redisson.simple.threads=16
org.redisson.Redisson.simple.nettyThreads=32

3. Use Redisson

@Inject
@Named("simple")
private RedissonClient redisson;

For injection without @Named annotation use instance name - default.

Try Redisson PRO with ultra-fast performance and support by SLA.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.