pub struct ColdIndexPageCache<S: ColdIndexPageStore + ?Sized> { /* private fields */ }Implementations§
Source§impl<S: ColdIndexPageStore + ?Sized> ColdIndexPageCache<S>
impl<S: ColdIndexPageStore + ?Sized> ColdIndexPageCache<S>
pub fn new(store: Arc<S>, capacity_pages: usize) -> Self
pub async fn put_page( &self, key: &ColdIndexPageKey, page: &ColdIndexPage, ) -> Result<()>
pub async fn get_page( &self, key: &ColdIndexPageKey, ) -> Result<Option<Arc<ColdIndexPage>>>
pub async fn object_segments_for_read( &self, stream_id: &BucketStreamId, segment: &StreamReadColdIndexSegment, ) -> Result<Vec<ObjectPayloadRef>>
pub fn cached_page_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for ColdIndexPageCache<S>
impl<S> RefUnwindSafe for ColdIndexPageCache<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for ColdIndexPageCache<S>where
S: ?Sized,
impl<S> Sync for ColdIndexPageCache<S>where
S: ?Sized,
impl<S> Unpin for ColdIndexPageCache<S>where
S: ?Sized,
impl<S> UnsafeUnpin for ColdIndexPageCache<S>where
S: ?Sized,
impl<S> UnwindSafe for ColdIndexPageCache<S>where
S: RefUnwindSafe + ?Sized,
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