pub struct BTreePageCache { /* private fields */ }Expand description
Shared page cache for B+Tree index pages
This type allows the cache to be shared across multiple BTreeManager instances, enabling cache persistence across backend reopen cycles.
Implementations§
Source§impl BTreePageCache
impl BTreePageCache
Sourcepub fn with_default_capacity() -> Self
pub fn with_default_capacity() -> Self
Create a new shared page cache with default capacity (64 pages)
Sourcepub fn get(&self, page_id: u64) -> Option<IndexPage>
pub fn get(&self, page_id: u64) -> Option<IndexPage>
Get a page from the cache (returns clone if found)
Trait Implementations§
Source§impl Clone for BTreePageCache
impl Clone for BTreePageCache
Source§fn clone(&self) -> BTreePageCache
fn clone(&self) -> BTreePageCache
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BTreePageCache
impl !UnwindSafe for BTreePageCache
impl Freeze for BTreePageCache
impl Send for BTreePageCache
impl Sync for BTreePageCache
impl Unpin for BTreePageCache
impl UnsafeUnpin for BTreePageCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more