pub struct MemoryCachePolicy {
pub acquisition_pages: bool,
pub max_bytes: u64,
pub max_entries: u64,
pub max_entry_bytes: u64,
pub max_scope_bytes: u64,
pub ttl_ms: u64,
pub eviction: EvictionOrder,
}Expand description
Bounds apply to one plan’s cache namespace; no plan’s policy evicts another plan’s entries.
Fields§
§acquisition_pages: boolOpt in to eligible acquisition pages (spec 036, 3.13.7). Absence disables reuse; true is the only explicit wire value.
max_bytes: u64§max_entries: u64§max_entry_bytes: u64§max_scope_bytes: u64§ttl_ms: u64§eviction: EvictionOrderTrait Implementations§
Source§impl Clone for MemoryCachePolicy
impl Clone for MemoryCachePolicy
Source§impl Debug for MemoryCachePolicy
impl Debug for MemoryCachePolicy
Source§impl<'de> Deserialize<'de> for MemoryCachePolicy
impl<'de> Deserialize<'de> for MemoryCachePolicy
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 MemoryCachePolicy
Source§impl JsonSchema for MemoryCachePolicy
impl JsonSchema for MemoryCachePolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MemoryCachePolicy
impl PartialEq for MemoryCachePolicy
Source§impl Serialize for MemoryCachePolicy
impl Serialize for MemoryCachePolicy
impl StructuralPartialEq for MemoryCachePolicy
Auto Trait Implementations§
impl Freeze for MemoryCachePolicy
impl RefUnwindSafe for MemoryCachePolicy
impl Send for MemoryCachePolicy
impl Sync for MemoryCachePolicy
impl Unpin for MemoryCachePolicy
impl UnsafeUnpin for MemoryCachePolicy
impl UnwindSafe for MemoryCachePolicy
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