pub struct InMemoryLlmCache { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InMemoryLlmCache
impl Clone for InMemoryLlmCache
Source§fn clone(&self) -> InMemoryLlmCache
fn clone(&self) -> InMemoryLlmCache
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 Default for InMemoryLlmCache
impl Default for InMemoryLlmCache
Source§fn default() -> InMemoryLlmCache
fn default() -> InMemoryLlmCache
Returns the “default value” for a type. Read more
Source§impl LlmCache for InMemoryLlmCache
impl LlmCache for InMemoryLlmCache
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 CacheKey,
) -> Pin<Box<dyn Future<Output = Result<Option<CachedTurn>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put<'life0, 'async_trait>(
&'life0 self,
key: CacheKey,
value: CachedTurn,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for InMemoryLlmCache
impl !RefUnwindSafe for InMemoryLlmCache
impl Send for InMemoryLlmCache
impl Sync for InMemoryLlmCache
impl Unpin for InMemoryLlmCache
impl UnsafeUnpin for InMemoryLlmCache
impl !UnwindSafe for InMemoryLlmCache
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