add global flush function
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
7cbb0139f2
commit
139b0fdc3e
3 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,8 @@ impl service::globals::Data for KeyValueDatabase {
|
|||
|
||||
fn cleanup(&self) -> Result<()> { self.db.cleanup() }
|
||||
|
||||
fn flush(&self) -> Result<()> { self.db.flush() }
|
||||
|
||||
fn memory_usage(&self) -> String {
|
||||
let pdu_cache = self.pdu_cache.lock().unwrap().len();
|
||||
let shorteventid_cache = self.shorteventid_cache.lock().unwrap().len();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue