pub struct RedisCache;Expand description
v1.cache.redis — the cache as one action function. Registered by the
preload inventory when the application links this crate and
redis.cache.enabled=true; every call resolves the shared store lazily.
Trait Implementations§
Source§impl ComposableFunction for RedisCache
impl ComposableFunction for RedisCache
fn handle_event<'life0, 'async_trait>(
&'life0 self,
headers: HashMap<String, String>,
input: EventEnvelope,
_instance: usize,
) -> Pin<Box<dyn Future<Output = Result<EventEnvelope, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RedisCache
impl RefUnwindSafe for RedisCache
impl Send for RedisCache
impl Sync for RedisCache
impl Unpin for RedisCache
impl UnsafeUnpin for RedisCache
impl UnwindSafe for RedisCache
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