pub struct Redis { /* private fields */ }Expand description
A Redis server and a pool of connections to it
Implementations§
Source§impl Redis
impl Redis
Sourcepub fn from_url(url: &str) -> Result<Self>
pub fn from_url(url: &str) -> Result<Self>
redis://[user:password@]host[:port][/db]; no connection is made yet
Sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Connect, read and write timeout per command (default 5 seconds)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Redis
impl RefUnwindSafe for Redis
impl Send for Redis
impl Sync for Redis
impl Unpin for Redis
impl UnsafeUnpin for Redis
impl UnwindSafe for Redis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more