pub enum FlushMode {
Sync,
Async,
}Expand description
SCRIPT FLUSH mode (Redis 6.2+ semantics).
Variants§
Sync
Synchronous — drop the cache before returning.
Async
Asynchronous — schedule the cache drop. v1.27 implements both modes as Sync; we keep the tag for future differentiation (and Redis-compat replies).
Trait Implementations§
impl Copy for FlushMode
impl Eq for FlushMode
impl StructuralPartialEq for FlushMode
Auto Trait Implementations§
impl Freeze for FlushMode
impl RefUnwindSafe for FlushMode
impl Send for FlushMode
impl Sync for FlushMode
impl Unpin for FlushMode
impl UnsafeUnpin for FlushMode
impl UnwindSafe for FlushMode
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