pub struct RedisStores {
pub rate_limit: RedisRateLimitStore,
pub secondary_storage: RedisSecondaryStorage,
}Expand description
Rate limit and secondary storage backed by one ConnectionManager.
Fields§
§rate_limit: RedisRateLimitStore§secondary_storage: RedisSecondaryStorageImplementations§
Source§impl RedisStores
impl RedisStores
pub async fn connect(url: &str) -> Result<Self, RustAuthError>
pub async fn connect_with_options( url: &str, options: RedisOptions, ) -> Result<Self, RustAuthError>
Sourcepub fn apply_to_options(&self, options: RustAuthOptions) -> RustAuthOptions
pub fn apply_to_options(&self, options: RustAuthOptions) -> RustAuthOptions
Wires both stores into RustAuthOptions (secondary storage + distributed rate limit).
Trait Implementations§
Source§impl Clone for RedisStores
impl Clone for RedisStores
Source§fn clone(&self) -> RedisStores
fn clone(&self) -> RedisStores
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 RedisStores
impl !UnwindSafe for RedisStores
impl Freeze for RedisStores
impl Send for RedisStores
impl Sync for RedisStores
impl Unpin for RedisStores
impl UnsafeUnpin for RedisStores
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