pub struct WarmCacheRequest {
pub namespace: String,
pub vector_ids: Option<Vec<String>>,
pub priority: WarmingPriority,
pub target_tier: WarmingTargetTier,
pub background: bool,
pub ttl_hint_seconds: Option<u64>,
pub access_pattern: AccessPatternHint,
pub max_vectors: Option<usize>,
}Expand description
Cache warming request with priority hints
Fields§
§namespace: StringNamespace to warm
vector_ids: Option<Vec<String>>Specific vector IDs to warm (None = all)
priority: WarmingPriorityWarming priority level
target_tier: WarmingTargetTierTarget cache tier
background: boolRun warming in background (non-blocking)
ttl_hint_seconds: Option<u64>TTL hint in seconds
access_pattern: AccessPatternHintAccess pattern hint for optimization
max_vectors: Option<usize>Maximum vectors to warm
Implementations§
Source§impl WarmCacheRequest
impl WarmCacheRequest
Sourcepub fn new(namespace: impl Into<String>) -> Self
pub fn new(namespace: impl Into<String>) -> Self
Create a new cache warming request for a namespace
Sourcepub fn with_vector_ids(self, ids: Vec<String>) -> Self
pub fn with_vector_ids(self, ids: Vec<String>) -> Self
Warm specific vector IDs
Sourcepub fn with_priority(self, priority: WarmingPriority) -> Self
pub fn with_priority(self, priority: WarmingPriority) -> Self
Set warming priority
Sourcepub fn with_target_tier(self, tier: WarmingTargetTier) -> Self
pub fn with_target_tier(self, tier: WarmingTargetTier) -> Self
Set target cache tier
Sourcepub fn in_background(self) -> Self
pub fn in_background(self) -> Self
Run warming in background
Sourcepub fn with_access_pattern(self, pattern: AccessPatternHint) -> Self
pub fn with_access_pattern(self, pattern: AccessPatternHint) -> Self
Set access pattern hint
Sourcepub fn with_max_vectors(self, max: usize) -> Self
pub fn with_max_vectors(self, max: usize) -> Self
Limit number of vectors to warm
Trait Implementations§
Source§impl Clone for WarmCacheRequest
impl Clone for WarmCacheRequest
Source§fn clone(&self) -> WarmCacheRequest
fn clone(&self) -> WarmCacheRequest
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 moreSource§impl Debug for WarmCacheRequest
impl Debug for WarmCacheRequest
Source§impl<'de> Deserialize<'de> for WarmCacheRequest
impl<'de> Deserialize<'de> for WarmCacheRequest
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
Auto Trait Implementations§
impl Freeze for WarmCacheRequest
impl RefUnwindSafe for WarmCacheRequest
impl Send for WarmCacheRequest
impl Sync for WarmCacheRequest
impl Unpin for WarmCacheRequest
impl UnsafeUnpin for WarmCacheRequest
impl UnwindSafe for WarmCacheRequest
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