Trait engine_traits::engine::KvEngine [−][src]
A TiKV key-value store
Associated Types
Required methods
fn snapshot(&self) -> Self::Snapshot
[src][−]
Create a snapshot
fn sync(&self) -> Result<()>
[src][−]
Syncs any writes to disk
fn bad_downcast<T: 'static>(&self) -> &T
[src][−]
Cast to a concrete engine type
This only exists as a temporary hack during refactoring. It cannot be used forever.
Provided methods
fn flush_metrics(&self, _instance: &str)
[src][−]
Flush metrics to prometheus
instance
is the label of the metric to flush.
fn reset_statistics(&self)
[src][−]
Reset internal statistics
Implementors
impl KvEngine for PanicEngine
impl KvEngine for PanicEngine
impl KvEngine for RocksEngine
impl KvEngine for RocksEngine