Skip to main content

create_from_env

Function create_from_env 

Source
pub fn create_from_env() -> Arc<dyn RateLimiter> 
Expand description

Builds a shared limiter from the environment: Redis-backed when REDIS_URL or REDIS_URI is set, otherwise in-memory.