KVWriter

Trait KVWriter 

Source
pub trait KVWriter: Send + Sync {
    // Required methods
    fn set<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        persona_id: &'life1 str,
        app_id: &'life2 str,
        key: &'life3 str,
        value: Value,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        persona_id: &'life1 str,
        app_id: &'life2 str,
        key: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Defines basic write and delete operations for the store.

Required Methods§

Source

fn set<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, persona_id: &'life1 str, app_id: &'life2 str, key: &'life3 str, value: Value, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Stores a value for a specific persona, app, and key.

Source

fn delete<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, persona_id: &'life1 str, app_id: &'life2 str, key: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Deletes a key from a specific persona and app.

Implementors§