Skip navigation links
Lettuce

Package io.lettuce.core.masterreplica

Client support for Redis Master/Replica setups.

See: Description

Package io.lettuce.core.masterreplica Description

Client support for Redis Master/Replica setups. MasterReplica supports self-managed, Redis Sentinel-managed, AWS ElastiCache and Azure Redis managed Master/Replica setups. Connections can be obtained by providing the RedisClient, a RedisURI and a RedisCodec.
 RedisClient client = RedisClient.create();
 StatefulRedisMasterReplicaConnection connection = MasterReplica.connect(client,
         RedisURI.create("redis://localhost"), StringCodec.UTF8);
 // ...

 connection.close();
 client.shutdown();
 
Skip navigation links
Lettuce

Copyright © 2020 lettuce.io. All rights reserved.