Spring Redis

Spring Redis

Scheme: spring-redis

Represents a Redis endpoint.

Name Kind Type Required Deprecated Default Value Enum Values Description
host path java.lang.String true false The host where Redis server is running.
port path java.lang.Integer true false Redis server port number
command parameter org.apache.camel.component.redis.Command false SET 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

channels parameter java.lang.String false List of topic names or name patterns to subscribe to. Multiple names can be separated by comma.
redisTemplate parameter org.springframework.data.redis.core.RedisTemplate false Reference to a pre-configured RedisTemplate instance to use.
listenerContainer parameter org.springframework.data.redis.listener.RedisMessageListenerContainer false Reference to a pre-configured RedisMessageListenerContainer instance to use.
connectionFactory parameter org.springframework.data.redis.connection.RedisConnectionFactory false Reference to a pre-configured RedisConnectionFactory instance to use.
serializer parameter org.springframework.data.redis.serializer.RedisSerializer false Reference to a pre-configured RedisSerializer instance to use.
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

spring-redis consumer