pub trait RenderCacheStore {
// Provided methods
fn load_chapter_pages(
&self,
_profile: PaginationProfileId,
_chapter_index: usize,
) -> Option<Vec<RenderPage>> { ... }
fn store_chapter_pages(
&self,
_profile: PaginationProfileId,
_chapter_index: usize,
_pages: &[RenderPage],
) { ... }
}Expand description
Storage hooks for render-page caches.
Provided Methods§
Sourcefn load_chapter_pages(
&self,
_profile: PaginationProfileId,
_chapter_index: usize,
) -> Option<Vec<RenderPage>>
fn load_chapter_pages( &self, _profile: PaginationProfileId, _chapter_index: usize, ) -> Option<Vec<RenderPage>>
Load cached pages for chapter_index and pagination profile, if available.
Sourcefn store_chapter_pages(
&self,
_profile: PaginationProfileId,
_chapter_index: usize,
_pages: &[RenderPage],
)
fn store_chapter_pages( &self, _profile: PaginationProfileId, _chapter_index: usize, _pages: &[RenderPage], )
Persist rendered chapter pages for the pagination profile.