[][src]Function cdrs_tokio::cluster::session::new_lz4

pub async fn new_lz4<'a, A, LB, '_>(
    node_configs: &'_ ClusterTcpConfig<'a, A>,
    load_balancing: LB
) -> Result<Session<LB>> where
    A: Authenticator + 'static + Sized,
    LB: LoadBalancingStrategy<TcpConnectionPool<A>> + Sized

Creates new session that will perform queries with LZ4 compression. Compression type can be changed at any time. As a parameter it takes:

  • cluster config
  • load balancing strategy (cannot be changed during Session life time).