pub trait ObjectMapOpEnvCache: Send + Sync {
    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
; 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 put_object_map(
        &self,
        object_id: &ObjectId,
        object: ObjectMap
    ) -> BuckyResult<ObjectMapRef>; fn remove_object_map(
        &self,
        object_id: &ObjectId
    ) -> BuckyResult<ObjectMapRef>; fn commit<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn gc<'life0, 'life1, 'async_trait>(
        &'life0 self,
        single: bool,
        target: &'life1 ObjectId
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; fn abort(&self); }
Expand description

ObjectMap op_env操作粒度的cache

Required 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,

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 put_object_map(
    &self,
    object_id: &ObjectId,
    object: ObjectMap
) -> BuckyResult<ObjectMapRef>

source

fn remove_object_map(&self, object_id: &ObjectId) -> BuckyResult<ObjectMapRef>

source

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

source

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

source

fn abort(&self)

Implementors§