Redisson Replicated Map

Replicated map implementation on top of Redission (Redis java client)

License

License

Categories

Categories

Redis Data Databases Redisson
GroupId

GroupId

com.datorama.oss
ArtifactId

ArtifactId

redisson-replicated-map
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Redisson Replicated Map
Replicated map implementation on top of Redission (Redis java client)
Project URL

Project URL

https://github.com/datorama/redisson-replicated-map
Source Code Management

Source Code Management

https://github.com/datorama/redisson-replicated-map/tree/master

Download redisson-replicated-map

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.redisson : redisson jar 2.2.22
org.slf4j : slf4j-simple jar 1.7.21

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

redisson-replicated-map

Replicated map implementation on top of Redission (Redis java client)

A replicated map is an eventually consistent, distributed map that eliminates the network and serialization overhead when compared to a standard distributed map (like Redission RMap). A replicated map does not partition data, instead it replicates the data to all the different clients.

Getting started

//create a Redisson Client instance to be used by our replicated map
Config config = new Config();
config.useSingleServer().setAddress("127.0.0.1:6379");
RedissonClient redisson = Redisson.create(config);

//create an instance of a replicated map
RedissonReplicatedMap<String, Integer> map = new RedissonReplicatedMap<String, Integer>(redisson, "myReplicatedMap");
map1.put("myKey", 1);
...

redisson.shutdown();
			

Note that...

Each RedissonReplicatedMap instance basically registers to the messaging channel so every change to every instance will trigger a change in all other instances (in process and out of process) that are using the same replicated map name ("myReplicatedMap" in the above example)

Maven

Include the following to your dependency list:

<dependency>
  <groupId>com.datorama.oss</groupId>
  <artifactId>redisson-replicated-map</artifactId>
  <version>1.0.0</version>
</dependency>
com.datorama.oss

Datorama

Versions

Version
1.0.0