pub struct RedisBackend { /* private fields */ }Expand description
Implementations§
Source§impl RedisBackend
impl RedisBackend
Sourcepub fn connect(config: &RedisStorageConfig) -> Result<Self>
pub fn connect(config: &RedisStorageConfig) -> Result<Self>
Build the connection pool described by config.
Connections are lazy, so this returns immediately without contacting
the server (see build_pool).
Sourcepub fn sessions(&self) -> RedisSessionStore
pub fn sessions(&self) -> RedisSessionStore
A SessionStore over this connection.
Sourcepub fn rate_limiter(&self) -> RedisRateLimitCounter
pub fn rate_limiter(&self) -> RedisRateLimitCounter
A RateLimitCounter over this connection.
Sourcepub fn policies(&self) -> RedisPolicyStore
pub fn policies(&self) -> RedisPolicyStore
A PolicyStore over this connection.
Trait Implementations§
Source§impl Clone for RedisBackend
impl Clone for RedisBackend
Source§fn clone(&self) -> RedisBackend
fn clone(&self) -> RedisBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RedisBackend
impl !UnwindSafe for RedisBackend
impl Freeze for RedisBackend
impl Send for RedisBackend
impl Sync for RedisBackend
impl Unpin for RedisBackend
impl UnsafeUnpin for RedisBackend
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