pub struct CacheManager { /* private fields */ }Expand description
Cache manager for managing cache operations.
Implementations§
Source§impl CacheManager
impl CacheManager
Sourcepub async fn put(&self, request: &Request, response: &Response) -> Result<()>
pub async fn put(&self, request: &Request, response: &Response) -> Result<()>
Put a request/response pair into the cache.
Sourcepub async fn add(&self, request: &Request) -> Result<()>
pub async fn add(&self, request: &Request) -> Result<()>
Add a request to the cache (fetches and caches).
Sourcepub async fn add_all(&self, requests: &[Request]) -> Result<()>
pub async fn add_all(&self, requests: &[Request]) -> Result<()>
Add multiple requests to the cache.
Auto Trait Implementations§
impl Freeze for CacheManager
impl RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnsafeUnpin for CacheManager
impl UnwindSafe for CacheManager
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