openauth-fred
Redis and Valkey integrations for OpenAuth-RS using fred.
Status
This package is in experimental beta. URL handling, key layout, Lua script behavior, and rate-limit contracts may change before stable release.
What It Provides
openauth-fred provides the same distributed RateLimitStore contract as the
Redis integration, but through the fred client. It supports Redis and Valkey
URLs and uses Lua scripting for atomic consume decisions.
Example
use ;
use FredRateLimitStore;
let store = connect_valkey.await?;
let auth = builder
.secret
.rate_limit
.build?;
Use this crate when your application already uses fred; use openauth-redis
when you prefer redis-rs.