Package | Description |
---|---|
org.springframework.data.redis.connection |
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
|
org.springframework.data.redis.connection.jedis |
Connection package for Jedis library.
|
org.springframework.data.redis.connection.lettuce |
Connection package for Lettuce Redis client.
|
Modifier and Type | Class and Description |
---|---|
class |
RedisClusterNode
Representation of a Redis server within the cluster.
|
class |
RedisServer |
Modifier and Type | Method and Description |
---|---|
RedisNode |
RedisNode.RedisNodeBuilder.build()
Get the
RedisNode . |
Modifier and Type | Method and Description |
---|---|
Set<RedisNode> |
RedisConfiguration.ClusterConfiguration.getClusterNodes()
Returns an
Collections.unmodifiableSet(Set) of cluster nodes. |
Set<RedisNode> |
RedisClusterConfiguration.getClusterNodes() |
Set<RedisNode> |
RedisConfiguration.SentinelConfiguration.getSentinels()
Returns an
Collections.unmodifiableSet(Set) of Sentinels. |
Set<RedisNode> |
RedisSentinelConfiguration.getSentinels() |
Modifier and Type | Method and Description |
---|---|
void |
RedisClusterConfiguration.addClusterNode(RedisNode node)
Add a cluster node to configuration.
|
void |
RedisSentinelConfiguration.addSentinel(RedisNode sentinel)
Add sentinel.
|
RedisClusterConfiguration |
RedisClusterConfiguration.clusterNode(RedisNode node) |
protected RedisSentinelConnection |
AbstractRedisConnection.getSentinelConnection(RedisNode sentinel)
Get
RedisSentinelCommands connected to given node. |
protected boolean |
AbstractRedisConnection.isActive(RedisNode node)
Check if node is active by sending ping.
|
void |
RedisServerCommands.migrate(byte[] key,
RedisNode target,
int dbIndex,
RedisServerCommands.MigrateOption option)
Atomically transfer a key from a source Redis instance to a destination Redis instance.
|
default void |
DefaultedRedisConnection.migrate(byte[] key,
RedisNode target,
int dbIndex,
RedisServerCommands.MigrateOption option)
Deprecated.
in favor of
RedisConnection.serverCommands() . |
void |
DefaultStringRedisConnection.migrate(byte[] key,
RedisNode target,
int dbIndex,
RedisServerCommands.MigrateOption option) |
void |
RedisServerCommands.migrate(byte[] key,
RedisNode target,
int dbIndex,
RedisServerCommands.MigrateOption option,
long timeout)
Atomically transfer a key from a source Redis instance to a destination Redis instance.
|
default void |
DefaultedRedisConnection.migrate(byte[] key,
RedisNode target,
int dbIndex,
RedisServerCommands.MigrateOption option,
long timeout)
Deprecated.
in favor of
RedisConnection.serverCommands() . |
void |
DefaultStringRedisConnection.migrate(byte[] key,
RedisNode target,
int dbIndex,
RedisServerCommands.MigrateOption option,
long timeout) |
RedisSentinelConfiguration |
RedisSentinelConfiguration.sentinel(RedisNode sentinel) |
Modifier and Type | Method and Description |
---|---|
void |
RedisClusterConfiguration.setClusterNodes(Iterable<RedisNode> nodes)
Set cluster nodes to connect to.
|
void |
RedisSentinelConfiguration.setSentinels(Iterable<RedisNode> sentinels)
Set Sentinels to connect to.
|
Modifier and Type | Method and Description |
---|---|
protected redis.clients.jedis.Jedis |
JedisConnection.getJedis(RedisNode node) |
protected JedisSentinelConnection |
JedisConnection.getSentinelConnection(RedisNode sentinel) |
protected boolean |
JedisConnection.isActive(RedisNode node) |
Constructor and Description |
---|
JedisSentinelConnection(RedisNode sentinel) |
Modifier and Type | Method and Description |
---|---|
protected RedisSentinelConnection |
LettuceConnection.getSentinelConnection(RedisNode sentinel) |
protected boolean |
LettuceConnection.isActive(RedisNode node) |
Constructor and Description |
---|
LettuceSentinelConnection(RedisNode sentinel)
Creates a
LettuceSentinelConnection with a dedicated client for a supplied RedisNode . |
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.