relay_cardinality/redis/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod cache;
mod limiter;
mod quota;
mod script;
mod state;

pub use self::limiter::{RedisSetLimiter, RedisSetLimiterOptions};

/// Key prefix used for Redis keys.
const KEY_PREFIX: &str = "relay:cardinality";
/// Redis key version.
///
/// The version is embedded in the key as a static segment, increment the version whenever there are
/// breaking changes made to the keys or storage format in Redis.
const KEY_VERSION: u32 = 1;