redis source Redis Source

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Get Events from a Redis cache

Configuration Options

The following table summarizes the configuration options available for the redis-source Kamelet:

Property Name Description Type Default Example

channels

Channels

Required Redis Channels.

string

one

redisHost

Redis Host

Required The host where Redis server is running.

string

redisPort

Redis Port

Required The port where Redis server is running.

integer

command

Command

Redis Command.

string

SUBSCRIBE

serializer

Serializer

RedisSerializer fully qualified name implementation.

string

org.springframework.data.redis.serializer.StringRedisSerializer

Dependencies

At runtime, the redis-source Kamelet relies upon the presence of the following dependencies:

  • camel:kamelet

  • camel:core

  • camel:spring-redis

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:redis-source"
      parameters:
        .
        .
        .
      steps:
        - to:
            uri: "kamelet:log-sink"

You can now run it directly through the following command

camel run route.yaml