This connector provides a Sink that can write to
Redis and also can publish data to Redis PubSub. To use this connector, add the
following dependency to your project:
Version Compatibility: This module is compatible with Redis 2.8.5.
Note that the streaming connectors are currently not part of the binary distribution. You need to link them for cluster execution explicitly.
A class providing an interface for sending data to Redis.
The sink can use three different methods for communicating with different type of Redis environments:
Single Redis Server
Redis Cluster
Redis Sentinel
This code shows how to create a sink that communicate to a single redis server:
This example code does the same, but for Redis Cluster:
This example shows when the Redis environment is with Sentinels:
This section gives a description of all the available data types and what Redis command used for that.