pub struct KVEngine { /* private fields */ }Expand description
Main KV engine
Implementations§
Source§impl KVEngine
impl KVEngine
Sourcepub async fn set(
&self,
database_id: DatabaseId,
key: Key,
value: Value,
ttl: Option<TTL>,
) -> KVResult<()>
pub async fn set( &self, database_id: DatabaseId, key: Key, value: Value, ttl: Option<TTL>, ) -> KVResult<()>
Sourcepub async fn keys_pattern(
&self,
database_id: DatabaseId,
pattern: &str,
) -> KVResult<Vec<Key>>
pub async fn keys_pattern( &self, database_id: DatabaseId, pattern: &str, ) -> KVResult<Vec<Key>>
Sourcepub async fn clear_database(&self, database_id: DatabaseId) -> KVResult<()>
pub async fn clear_database(&self, database_id: DatabaseId) -> KVResult<()>
Sourcepub async fn subscribe(
&self,
pattern: ChannelPattern,
) -> KVResult<UnboundedReceiver<PubSubMessage>>
pub async fn subscribe( &self, pattern: ChannelPattern, ) -> KVResult<UnboundedReceiver<PubSubMessage>>
Sourcepub async fn unsubscribe(&self, pattern: &ChannelPattern) -> KVResult<usize>
pub async fn unsubscribe(&self, pattern: &ChannelPattern) -> KVResult<usize>
Sourcepub async fn subscribe_to_invalidations(
&self,
) -> KVResult<UnboundedReceiver<PubSubMessage>>
pub async fn subscribe_to_invalidations( &self, ) -> KVResult<UnboundedReceiver<PubSubMessage>>
Auto Trait Implementations§
impl Freeze for KVEngine
impl !RefUnwindSafe for KVEngine
impl Send for KVEngine
impl Sync for KVEngine
impl Unpin for KVEngine
impl !UnwindSafe for KVEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more