pub struct RedisConfig {
pub enabled: bool,
pub url: Option<String>,
pub policy_cache_ttl_secs: u64,
pub max_connections: u32,
}Expand description
Optional Redis policy / session cache.
enabled = false by default — Redis is opt-in. When the operator
measures policy-evaluation latency as a bottleneck they flip
enabled = true and the gateway’s hot-path policy decisions get
a policy_cache_ttl_secs TTL cache in front of PostgreSQL.
Fields§
§enabled: boolMaster switch — when false, no Redis dependency is required.
url: Option<String>Redis connection URL. Falls back to AAASM_REDIS_URL (env
override Subtask AAASM-1735); leaving both unset with
enabled = true is a startup error.
policy_cache_ttl_secs: u64TTL in seconds for hot-path policy-decision cache entries.
max_connections: u32Maximum Redis connection-pool size. Default: 10.
Trait Implementations§
Source§impl Clone for RedisConfig
impl Clone for RedisConfig
Source§fn clone(&self) -> RedisConfig
fn clone(&self) -> RedisConfig
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 moreSource§impl Debug for RedisConfig
impl Debug for RedisConfig
Source§impl Default for RedisConfig
impl Default for RedisConfig
impl Eq for RedisConfig
Source§impl PartialEq for RedisConfig
impl PartialEq for RedisConfig
Source§fn eq(&self, other: &RedisConfig) -> bool
fn eq(&self, other: &RedisConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RedisConfig
Auto Trait Implementations§
impl Freeze for RedisConfig
impl RefUnwindSafe for RedisConfig
impl Send for RedisConfig
impl Sync for RedisConfig
impl Unpin for RedisConfig
impl UnsafeUnpin for RedisConfig
impl UnwindSafe for RedisConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.