Module lettuce.core
Package io.lettuce.core.masterslave
Deprecated.
Client support for Redis Master/Slave setups.
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();
-
Interface Summary Interface Description StatefulRedisMasterSlaveConnection<K,V> Deprecated. since 5.2, useMasterReplicaandStatefulRedisMasterReplicaConnection. -
Class Summary Class Description MasterSlave Deprecated. since 5.2, useMasterReplica
masterreplicapackage with version 6.