pub struct KVCacheManagerAdapter { /* private fields */ }Expand description
Compatibility wrapper for existing KVCacheManager implementations
Implementations§
Source§impl KVCacheManagerAdapter
impl KVCacheManagerAdapter
pub fn new(cache: UnifiedKVCache) -> Self
Trait Implementations§
Source§impl KVCacheManager for KVCacheManagerAdapter
impl KVCacheManager for KVCacheManagerAdapter
fn store<'life0, 'async_trait>(
&'life0 self,
key: String,
value: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for KVCacheManagerAdapter
impl !RefUnwindSafe for KVCacheManagerAdapter
impl Send for KVCacheManagerAdapter
impl Sync for KVCacheManagerAdapter
impl Unpin for KVCacheManagerAdapter
impl !UnwindSafe for KVCacheManagerAdapter
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