Struct ntex_redis::RedisConnector [−][src]
pub struct RedisConnector<A, T> { /* fields omitted */ }
Expand description
Redis connector
Implementations
Create new redis connector
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Request = Connect<A>, Error = ConnectError>,
T::Response: AsyncRead + AsyncWrite + Unpin + 'static,
impl<A, T> RedisConnector<A, T> where
A: Address + Clone,
T: Service<Request = Connect<A>, Error = ConnectError>,
T::Response: AsyncRead + AsyncWrite + Unpin + 'static,
pub fn buffer_params(
self,
max_read_buf_size: u16,
max_write_buf_size: u16,
min_buf_size: u16
) -> Self
pub fn buffer_params(
self,
max_read_buf_size: u16,
max_write_buf_size: u16,
min_buf_size: u16
) -> Self
Set read/write buffer params
By default read buffer is 16kb, write buffer is 16kb
pub fn connector<U>(self, connector: U) -> RedisConnector<A, U> where
U: Service<Request = Connect<A>, Error = ConnectError>,
U::Response: AsyncRead + AsyncWrite + Unpin + 'static,
pub fn connector<U>(self, connector: U) -> RedisConnector<A, U> where
U: Service<Request = Connect<A>, Error = ConnectError>,
U::Response: AsyncRead + AsyncWrite + Unpin + 'static,
Use custom connector
Connect to redis server and create shared client
Connect to redis server and create simple client