pub enum Purge {
All,
Exact(String),
Prefix(String),
}Expand description
What CacheLayer::purge removes. A cache key is the request target
(path and query) plus the values of vary_by_headers, so Exact removes
every variant of one target.
Variants§
All
Everything.
Exact(String)
One request target, e.g. /products/42 or /search?q=lamp.
Prefix(String)
Every target starting with this, e.g. /products/.
Implementations§
Trait Implementations§
impl Eq for Purge
impl StructuralPartialEq for Purge
Auto Trait Implementations§
impl Freeze for Purge
impl RefUnwindSafe for Purge
impl Send for Purge
impl Sync for Purge
impl Unpin for Purge
impl UnsafeUnpin for Purge
impl UnwindSafe for Purge
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.