Redisson Kotlin Coroutines Reactive

A wrapper for Redisson Reactive API to use in kotlin coroutines

License

License

Categories

Categories

Kotlin Languages Redis Data Databases React User Interface Web Frameworks Redisson
GroupId

GroupId

com.github.vitalyros
ArtifactId

ArtifactId

redisson-kotlin-coroutines-reactive
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Redisson Kotlin Coroutines Reactive
A wrapper for Redisson Reactive API to use in kotlin coroutines
Project URL

Project URL

https://github.com/vitalyros/redisson-kotlin-coroutines
Source Code Management

Source Code Management

https://github.com/vitalyros/redisson-kotlin-coroutines.git

Download redisson-kotlin-coroutines-reactive

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.vitalyros/redisson-kotlin-coroutines-reactive/ -->
<dependency>
    <groupId>com.github.vitalyros</groupId>
    <artifactId>redisson-kotlin-coroutines-reactive</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.vitalyros/redisson-kotlin-coroutines-reactive/
implementation 'com.github.vitalyros:redisson-kotlin-coroutines-reactive:0.0.1'
// https://jarcasting.com/artifacts/com.github.vitalyros/redisson-kotlin-coroutines-reactive/
implementation ("com.github.vitalyros:redisson-kotlin-coroutines-reactive:0.0.1")
'com.github.vitalyros:redisson-kotlin-coroutines-reactive:jar:0.0.1'
<dependency org="com.github.vitalyros" name="redisson-kotlin-coroutines-reactive" rev="0.0.1">
  <artifact name="redisson-kotlin-coroutines-reactive" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.vitalyros', module='redisson-kotlin-coroutines-reactive', version='0.0.1')
)
libraryDependencies += "com.github.vitalyros" % "redisson-kotlin-coroutines-reactive" % "0.0.1"
[com.github.vitalyros/redisson-kotlin-coroutines-reactive "0.0.1"]

Dependencies

compile (5)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.20
org.jetbrains.kotlin : kotlin-reflect jar 1.4.20
org.jetbrains.kotlinx : kotlinx-coroutines-core jar 1.4.1
org.jetbrains.kotlinx : kotlinx-coroutines-reactive jar 1.4.1
org.redisson : redisson jar 3.13.6

test (2)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.11.1
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

redisson-kotlin-coroutines

A wrapper for Redisson Reactive API to use in kotlin coroutines

Usage

  1. Use your build tool to link the dependency

maven:

<dependency>
     <groupId>com.github.vitalyros</groupId>
     <artifactId>redisson-kotlin-coroutines-reactive</artifactId>
     <version>0.0.1</version>
</dependency>

gradle:

compile group: 'com.github.vitalyros', name: 'redisson-kotlin-coroutines-reactive', version: '0.0.1'
  1. Import the coroutines extension function and use it to create the RedissonCoroutinesClient api from the RedissonReactiveClient api. The api can be used in coroutines and is non-blocking.
import org.vitalyros.redisson.kotlin.coroutines.RedissonCoroutinesClient
import org.vitalyros.redisson.kotlin.coroutines
...
val redisson: RedissonCoroutinesClient = Redisson.createReactive().coroutines()
...
runBlocking {
    val bucket = redisson.getBucket<String>("test")
    bucket.set("someValue")
    val result = bucket.get()
}

Goals

  • Adopt Redisson API for kotlin coroutines
  • Implement the API by wrapping Reactive Implementation
  • Test by adopting existing Redisson tests

Implemented API Checklist

  • Keys
  • Bucket
  • Buckets
  • IdGenerator
  • Semaphore
  • PermitExpirableSemaphore
  • Lock
  • ReadWriteLock
  • List
  • Map
  • Set
  • ScoredSortedSet
  • LexSortedSet
  • ListMultimap
  • SetMultimap
  • Topic
  • ReliableTopic
  • PatternTopic
  • Queue
  • RingBuffer
  • BlockingQueue
  • BlockingDeque
  • TransferQueue
  • Deque
  • AtomicLong
  • AtomicDouble
  • Remote
  • Script
  • Transaction
  • NodesGroup
  • Batch
  • SetCache
  • MapCache
  • HyperLogLog
  • CountDownLatch
  • Stream
  • BinaryStream
  • TimeSeries
  • Geo

Versions

Version
0.0.1