Trait KeyValueStore
Source pub trait KeyValueStore: Send + Sync {
// Required methods
fn get_or_create_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
bucket_name: &'life1 str,
ttl: Option<Duration>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn KeyValueBucket>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
bucket_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn KeyValueBucket>>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}