Spring Redis

Spring Redis

Description: Represents the component that manages RedisEndpoint.
Scheme: spring-redis
Syntax: spring-redis:host:port
Maven: org.apache.camel/camel-spring-redis/2.16.1

Represents a Redis endpoint.

Name Kind Group Required Default Type Enum Description
host path common true java.lang.String The host where Redis server is running.
port path common true java.lang.Integer Redis server port number
channels parameter common java.lang.String List of topic names or name patterns to subscribe to. Multiple names can be separated by comma.
command parameter common SET org.apache.camel.component.redis.Command PING
SET
GET
QUIT
EXISTS
DEL
TYPE
FLUSHDB
KEYS
RANDOMKEY
RENAME
RENAMENX
RENAMEX
DBSIZE
EXPIRE
EXPIREAT
TTL
SELECT
MOVE
FLUSHALL
GETSET
MGET
SETNX
SETEX
MSET
MSETNX
DECRBY
DECR
INCRBY
INCR
APPEND
SUBSTR
HSET
HGET
HSETNX
HMSET
HMGET
HINCRBY
HEXISTS
HDEL
HLEN
HKEYS
HVALS
HGETALL
RPUSH
LPUSH
LLEN
LRANGE
LTRIM
LINDEX
LSET
LREM
LPOP
RPOP
RPOPLPUSH
SADD
SMEMBERS
SREM
SPOP
SMOVE
SCARD
SISMEMBER
SINTER
SINTERSTORE
SUNION
SUNIONSTORE
SDIFF
SDIFFSTORE
SRANDMEMBER
ZADD
ZRANGE
ZREM
ZINCRBY
ZRANK
ZREVRANK
ZREVRANGE
ZCARD
ZSCORE
MULTI
DISCARD
EXEC
WATCH
UNWATCH
SORT
BLPOP
BRPOP
AUTH
SUBSCRIBE
PUBLISH
UNSUBSCRIBE
PSUBSCRIBE
PUNSUBSCRIBE
ZCOUNT
ZRANGEBYSCORE
ZREVRANGEBYSCORE
ZREMRANGEBYRANK
ZREMRANGEBYSCORE
ZUNIONSTORE
ZINTERSTORE
SAVE
BGSAVE
BGREWRITEAOF
LASTSAVE
SHUTDOWN
INFO
MONITOR
SLAVEOF
CONFIG
STRLEN
SYNC
LPUSHX
PERSIST
RPUSHX
ECHO
LINSERT
DEBUG
BRPOPLPUSH
SETBIT
GETBIT
SETRANGE
GETRANGE
PEXPIRE
PEXPIREAT
Default command, which can be overridden by message header.

Notice the consumer only supports the following commands: PSUBSCRIBE and SUBSCRIBE

connectionFactory parameter common org.springframework.data.redis.connection.RedisConnectionFactory Reference to a pre-configured RedisConnectionFactory instance to use.
listenerContainer parameter common org.springframework.data.redis.listener.RedisMessageListenerContainer Reference to a pre-configured RedisMessageListenerContainer instance to use.
redisTemplate parameter common org.springframework.data.redis.core.RedisTemplate Reference to a pre-configured RedisTemplate instance to use.
serializer parameter common org.springframework.data.redis.serializer.RedisSerializer Reference to a pre-configured RedisSerializer instance to use.
exchangePattern parameter advanced InOnly org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

spring-redis consumer