...
This component allows sending and receiving messages from Redis. Redis is advanced key-value store where keys can contain strings, hashes, lists, sets and sorted sets. In addition it provides pub/sub functionality for inter-app comunicationscommunications.
Camel provides a producer for executing commands, consumer for subscribing to pub/sub messages an idempotent repository for filtering out duplicate messages.
Info | ||
---|---|---|
| ||
In order to use this component, you must have a Redis server running. |
URI Format
Code Block |
---|
spring-redis://host:port[?options]
|
...
Message headers evaluated by the Redis producer
The producer issues commads commands to the server and each command has different set of parameters with specific types. The result from the command execution is returned in the message body.
...
Wiki Markup |
---|
{div:class=confluenceTableSmall} || Header || Type || Description || | {{CamelRedis.Channel}} | {{String}} | The channel name, where the message was received. | | {{CamelRedis.Pattern}} | {{String}} | The pattern mathichgmatching the channel, where the message was received. | {div} |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-redis</artifactId>
<version>${camel-version}</version>
</dependency>
|
where ${camel-version
} must be replaced by the actual version of Camel (2.11 or higher).
Include Page | ||||
---|---|---|---|---|
|