pub struct QueryCacheMapping {
pub query_region: RegionMapping,
pub timestamps_region: RegionMapping,
}Expand description
Query cache region contract.
Fields§
§query_region: RegionMappingRegion containing cached query result keys.
timestamps_region: RegionMappingRegion containing Hibernate update timestamps.
Implementations§
Source§impl QueryCacheMapping
impl QueryCacheMapping
Sourcepub fn new(
query_region: RegionMapping,
timestamps_region: RegionMapping,
) -> Result<Self, ClientProtocolError>
pub fn new( query_region: RegionMapping, timestamps_region: RegionMapping, ) -> Result<Self, ClientProtocolError>
Build a query-cache mapping that uses timestamp/bulk invalidation.
Sourcepub fn bulk_update_evictions(&self) -> [ClientRequest; 2]
pub fn bulk_update_evictions(&self) -> [ClientRequest; 2]
Build the two W1 evictions needed after a bulk update.
Trait Implementations§
Source§impl Clone for QueryCacheMapping
impl Clone for QueryCacheMapping
Source§fn clone(&self) -> QueryCacheMapping
fn clone(&self) -> QueryCacheMapping
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 moreSource§impl Debug for QueryCacheMapping
impl Debug for QueryCacheMapping
Source§impl<'de> Deserialize<'de> for QueryCacheMapping
impl<'de> Deserialize<'de> for QueryCacheMapping
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 QueryCacheMapping
Source§impl PartialEq for QueryCacheMapping
impl PartialEq for QueryCacheMapping
Source§fn eq(&self, other: &QueryCacheMapping) -> bool
fn eq(&self, other: &QueryCacheMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QueryCacheMapping
impl Serialize for QueryCacheMapping
impl StructuralPartialEq for QueryCacheMapping
Auto Trait Implementations§
impl Freeze for QueryCacheMapping
impl RefUnwindSafe for QueryCacheMapping
impl Send for QueryCacheMapping
impl Sync for QueryCacheMapping
impl Unpin for QueryCacheMapping
impl UnsafeUnpin for QueryCacheMapping
impl UnwindSafe for QueryCacheMapping
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