pub struct SmartCacheStrategy;Expand description
Smart cache strategy based on endpoint characteristics
Implementations§
Source§impl SmartCacheStrategy
impl SmartCacheStrategy
Sourcepub fn get_ttl_for_endpoint(endpoint: &str) -> Duration
pub fn get_ttl_for_endpoint(endpoint: &str) -> Duration
Get recommended TTL for different endpoint types
Sourcepub fn should_cache_endpoint(endpoint: &str) -> bool
pub fn should_cache_endpoint(endpoint: &str) -> bool
Determine if an endpoint should be cached
Auto Trait Implementations§
impl Freeze for SmartCacheStrategy
impl RefUnwindSafe for SmartCacheStrategy
impl Send for SmartCacheStrategy
impl Sync for SmartCacheStrategy
impl Unpin for SmartCacheStrategy
impl UnwindSafe for SmartCacheStrategy
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