pub trait ObjectCache: Send + Sync {
fn get_value<'life0, 'async_trait>(
&'life0 self,
object_id: ObjectId
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<Vec<u8>>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn put_value<'life0, 'async_trait>(
&'life0 self,
object_id: ObjectId,
object_raw: Vec<u8>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn is_exist<'life0, 'async_trait>(
&'life0 self,
object_id: ObjectId
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}