Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Default Value

Context

Description

host

null

Both

The host where Redis server is running.

port

null

Both

Redis port number.

command

SET

Both

Default command, which can be overridden by message header.

channels

SET

Consumer

List of topic names or name patterns to subscribe to.

redisTemplate

null

Producer

Reference to a pre-configured org.springframework.data.redis.core.RedisTemplate instance in the Registry.

connectionFactory

null

Both

Reference to an org.springframework.data.redis.connection.RedisConnectionFactory instance in the Registry.

listenerContainer

null

Consumer

Reference to an org.springframework.data.redis.listener.RedisMessageListenerContainer instance in the Registry instance in the Registry.

serializer

null

Consumer

Reference to an org.springframework.data.redis.serializer.RedisSerializer instance in the Registry.

Usage

See also the unit tests available at https://github.com/apache/camel/tree/master/components/camel-spring-redis/src/test/java/org/apache/camel/component/redis.

Message headers evaluated by the Redis producer

...