masterreplica package with version 6.See: Description
| Interface | Description |
|---|---|
| NodeConnectionFactory | Deprecated
will be moved to
masterreplica package with version 6. |
| StatefulRedisMasterSlaveConnection<K,V> | Deprecated
since 5.2, use
MasterReplica and
StatefulRedisMasterReplicaConnection. |
| TopologyProvider | Deprecated
will be moved to
masterreplica package with version 6. |
| Class | Description |
|---|---|
| MasterSlave | Deprecated
since 5.2, use
MasterReplica. |
| MasterSlaveConnectionProvider<K,V> | Deprecated
will be moved to
masterreplica package with version 6. |
| MasterSlaveTopologyProvider | Deprecated
will be moved to
masterreplica package with version 6. |
| SentinelTopologyProvider | Deprecated
will be moved to
masterreplica package with version 6. |
| StaticMasterSlaveTopologyProvider | Deprecated
will be moved to
masterreplica package with version 6. |
MasterSlave supports self-managed, Redis
Sentinel-managed, AWS ElastiCache and Azure Redis managed Master/Slave setups.
Connections can be obtained by providing the RedisClient, a RedisURI and a
RedisCodec.
RedisClient client = RedisClient.create(); StatefulRedisMasterSlaveConnectionconnection = MasterSlave.connect(client, RedisURI.create("redis://localhost"), StringCodec.UTF8); // ... connection.close(); client.shutdown();
Copyright © 2021 lettuce.io. All rights reserved.