pub struct L2Config {
pub redis_url: String,
pub ttl_seconds: u64,
pub connection_timeout_ms: u64,
pub operation_timeout_ms: u64,
pub key_prefix: String,
}Expand description
Configuration for L2 cache
Fields§
§redis_url: StringRedis connection string (e.g., “redis://127.0.0.1:6379”)
ttl_seconds: u64Default TTL in seconds (default: 3600 = 1 hour)
connection_timeout_ms: u64Connection timeout in milliseconds (default: 1000)
operation_timeout_ms: u64Operation timeout in milliseconds (default: 100)
key_prefix: StringKey prefix for namespacing (default: “llm_cache:”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for L2Config
impl RefUnwindSafe for L2Config
impl Send for L2Config
impl Sync for L2Config
impl Unpin for L2Config
impl UnwindSafe for L2Config
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more