Trait cyfs_base::ObjectMapRootCache
source · [−]pub trait ObjectMapRootCache: Send + Sync {
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
object_id: &'life1 ObjectId
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_object_map<'life0, 'life1, 'async_trait>(
&'life0 self,
object_id: &'life1 ObjectId
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<ObjectMapRef>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn put_object_map<'life0, 'async_trait>(
&'life0 self,
object_id: ObjectId,
object: ObjectMap
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
同一个root共享的一个cache
Required Methods
sourcefn exists<'life0, 'life1, 'async_trait>(
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
object_id: &'life1 ObjectId
) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn get_object_map<'life0, 'life1, 'async_trait>(
fn get_object_map<'life0, 'life1, 'async_trait>(
&'life0 self,
object_id: &'life1 ObjectId
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<ObjectMapRef>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn put_object_map<'life0, 'async_trait>(