pub struct SharedRedisStorage { /* private fields */ }Expand description
A shared Redis storage that can create multiple RedisStorage instances.
Implementations§
Sourcepub async fn new(client: Client) -> Result<Self, RedisError>
pub async fn new(client: Client) -> Result<Self, RedisError>
Creates a new SharedRedisStorage with the given Redis client.
Trait Implementations§
Source§fn clone(&self) -> SharedRedisStorage
fn clone(&self) -> SharedRedisStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§type Backend = RedisStorage<Args, MultiplexedConnection>
type Backend = RedisStorage<Args, MultiplexedConnection>
The backend type to be shared
Source§type Config = RedisConfig
type Config = RedisConfig
The Config for the backend
Source§type MakeError = RedisError
type MakeError = RedisError
The error returned if the backend cant be shared
Returns the backend to be shared
Returns the backend with config
Auto Trait Implementations§
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