pub struct CacheInvalidateService { /* private fields */ }Expand description
Outcome-aware segment that invalidates a single cache entry.
Evaluates key_expr:
None→Completed(exchange)(nothing to invalidate).Some(key)→repository.invalidate(&key).await.Err(e)→Failed(e).Ok(())→Completed(exchange).
Implementations§
Source§impl CacheInvalidateService
impl CacheInvalidateService
pub fn new( repository: Arc<dyn CacheRepository>, key_expr: MessageIdExpression, ) -> Self
Trait Implementations§
Source§impl Clone for CacheInvalidateService
impl Clone for CacheInvalidateService
Source§impl OutcomePipeline for CacheInvalidateService
impl OutcomePipeline for CacheInvalidateService
Source§fn clone_box(&self) -> Box<dyn OutcomePipeline>
fn clone_box(&self) -> Box<dyn OutcomePipeline>
Clone the segment into a new boxed instance. Required because
Box<dyn OutcomePipeline> cannot directly derive Clone.Auto Trait Implementations§
impl !RefUnwindSafe for CacheInvalidateService
impl !UnwindSafe for CacheInvalidateService
impl Freeze for CacheInvalidateService
impl Send for CacheInvalidateService
impl Sync for CacheInvalidateService
impl Unpin for CacheInvalidateService
impl UnsafeUnpin for CacheInvalidateService
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