pub trait ObjectMapRootCache: Send + Sync {
    // Required methods
    fn exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        object_id: &'life1 ObjectId
    ) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_object_map_ex<'life0, 'life1, 'async_trait>(
        &'life0 self,
        object_id: &'life1 ObjectId
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Option<ObjectMapRefCacheItem>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn put_object_map<'life0, 'async_trait>(
        &'life0 self,
        object_id: ObjectId,
        object: ObjectMap,
        access: Option<AccessString>
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    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 Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

同一个root共享的一个cache

Required Methods§

source

fn exists<'life0, 'life1, 'async_trait>( &'life0 self, object_id: &'life1 ObjectId ) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_object_map_ex<'life0, 'life1, 'async_trait>( &'life0 self, object_id: &'life1 ObjectId ) -> Pin<Box<dyn Future<Output = BuckyResult<Option<ObjectMapRefCacheItem>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn put_object_map<'life0, 'async_trait>( &'life0 self, object_id: ObjectId, object: ObjectMap, access: Option<AccessString> ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§