pub struct CacheSettings {
pub ttl_days: u32,
}Expand description
Expiration policy for the workspace’s on-disk caches. Time-based expiry is the whole policy: no LRU, no size caps. Expiration is hygiene, never correctness: the cache key components own correctness.
Fields§
§ttl_days: u32Entries older than this many days expire. 0 disables expiry
(cache prune and cache clear still work). The default is
sized to RabbitMQ’s monthly patch-release cadence: the real
reuse window is one round warming the next, four to six weeks.
Trait Implementations§
Source§impl Clone for CacheSettings
impl Clone for CacheSettings
Source§fn clone(&self) -> CacheSettings
fn clone(&self) -> CacheSettings
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 moreimpl Copy for CacheSettings
Source§impl Debug for CacheSettings
impl Debug for CacheSettings
Source§impl Default for CacheSettings
impl Default for CacheSettings
Source§impl<'de> Deserialize<'de> for CacheSettings
impl<'de> Deserialize<'de> for CacheSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CacheSettings
Source§impl PartialEq for CacheSettings
impl PartialEq for CacheSettings
Source§impl Serialize for CacheSettings
impl Serialize for CacheSettings
impl StructuralPartialEq for CacheSettings
Auto Trait Implementations§
impl Freeze for CacheSettings
impl RefUnwindSafe for CacheSettings
impl Send for CacheSettings
impl Sync for CacheSettings
impl Unpin for CacheSettings
impl UnsafeUnpin for CacheSettings
impl UnwindSafe for CacheSettings
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