pub struct CacheStepDef {
pub repository: Option<String>,
pub key: LanguageExpressionDef,
pub ttl: Option<String>,
pub max_entry_bytes: Option<usize>,
pub on_miss: Vec<DeclarativeStep>,
}Expand description
Cache EIP step definition.
Looks up/puts data in a CacheRepository by key, running on_miss
when the key is absent.
Fields§
§repository: Option<String>Name of the registered CacheRepository (optional; defaults to system default).
key: LanguageExpressionDefExpression that extracts the cache key from the exchange.
ttl: Option<String>Optional TTL as a string expression (e.g. “60s”, “5m”).
max_entry_bytes: Option<usize>Maximum bytes per cache entry.
on_miss: Vec<DeclarativeStep>Child sub-pipeline executed on cache miss.
Trait Implementations§
Source§impl Clone for CacheStepDef
impl Clone for CacheStepDef
Source§fn clone(&self) -> CacheStepDef
fn clone(&self) -> CacheStepDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheStepDef
impl Debug for CacheStepDef
Source§impl PartialEq for CacheStepDef
impl PartialEq for CacheStepDef
impl StructuralPartialEq for CacheStepDef
Auto Trait Implementations§
impl Freeze for CacheStepDef
impl RefUnwindSafe for CacheStepDef
impl Send for CacheStepDef
impl Sync for CacheStepDef
impl Unpin for CacheStepDef
impl UnsafeUnpin for CacheStepDef
impl UnwindSafe for CacheStepDef
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