pub struct SqliteCacheConfig {
pub path: String,
pub ttl: Option<u64>,
}Expand description
Configuration for SqliteCache.
Fields§
§path: StringPath to the SQLite database file. Use ":memory:" for an in-memory database.
ttl: Option<u64>Optional TTL in seconds. When set, cached entries older than this are treated as expired and excluded from lookups.
Implementations§
Trait Implementations§
Source§impl Clone for SqliteCacheConfig
impl Clone for SqliteCacheConfig
Source§fn clone(&self) -> SqliteCacheConfig
fn clone(&self) -> SqliteCacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqliteCacheConfig
impl RefUnwindSafe for SqliteCacheConfig
impl Send for SqliteCacheConfig
impl Sync for SqliteCacheConfig
impl Unpin for SqliteCacheConfig
impl UnsafeUnpin for SqliteCacheConfig
impl UnwindSafe for SqliteCacheConfig
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