pub struct InMemoryCache { /* private fields */ }Expand description
Cache that stores things in memory.
Implementations§
Trait Implementations§
Source§impl BaseCache for InMemoryCache
impl BaseCache for InMemoryCache
Source§fn alookup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
llm_string: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<CacheReturnValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn alookup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
llm_string: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<CacheReturnValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl Debug for InMemoryCache
impl Debug for InMemoryCache
Auto Trait Implementations§
impl !Freeze for InMemoryCache
impl RefUnwindSafe for InMemoryCache
impl Send for InMemoryCache
impl Sync for InMemoryCache
impl Unpin for InMemoryCache
impl UnwindSafe for InMemoryCache
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