Skip to content

Commit

Permalink
Cluster: Create read_from_replicas option (redis-rs#635)
Browse files Browse the repository at this point in the history
Send write queries to primaries & read queries to replicas in `read_from_replicas` mode;
deprecate the `readonly` param in favour of the new `read_from_replicas` param.
  • Loading branch information
utkarshgupta137 authored and nonirosenfeldredis committed Feb 26, 2023
1 parent 2476266 commit 8645b26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/src/cluster.rs
Expand Up @@ -65,6 +65,7 @@ pub use crate::cluster_pipeline::{cluster_pipe, ClusterPipeline};

use crate::tls::Certificate;
use crate::tls::RedisIdentity;
type SlotMap = BTreeMap<u16, String>;

/// This is a connection of Redis cluster.
pub struct ClusterConnection {
Expand Down
Empty file added src/cluster_client.rs
Empty file.

0 comments on commit 8645b26

Please sign in to comment.