add global flush function

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-06 18:14:30 -05:00 committed by June
parent 7cbb0139f2
commit 139b0fdc3e
3 changed files with 5 additions and 0 deletions

View file

@ -17,6 +17,7 @@ pub trait Data: Send + Sync {
fn update_check_for_updates_id(&self, id: u64) -> Result<()>;
async fn watch(&self, user_id: &UserId, device_id: &DeviceId) -> Result<()>;
fn cleanup(&self) -> Result<()>;
fn flush(&self) -> Result<()>;
fn memory_usage(&self) -> String;
fn clear_caches(&self, amount: u32);
fn load_keypair(&self) -> Result<Ed25519KeyPair>;