tower-rate-limiter 0.1.6

Keyed fixed-window rate limiting middleware for Tower
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Concrete rate-limit storage adapters.

#[cfg(feature = "memory")]
mod memory;

#[cfg(feature = "memory")]
pub use memory::{MemoryStore, MemoryStoreError};

#[cfg(all(feature = "redis", any(feature = "runtime-tokio", feature = "runtime-smol")))]
mod redis;

#[cfg(all(feature = "redis", any(feature = "runtime-tokio", feature = "runtime-smol")))]
pub use redis::{RedisStore, RedisStoreError};