pub async fn delete(&self, key: &str) {
        let _old = self.store.write().await.remove(key);
        if self.serialize_on_write {
            match self.write_to_disk().await {
                Ok(_) => {}
                Err(e) => error!("Couldn't serialze to disk: {}", e),
            }
        }
    }
///
/// Removes an entry without returning the result.
///
Removes an entry without returning the result.
Removes an entry without returning the result .
pub async fn delete(&self, key: &str) {
        let _old = self.store.write().await.remove(key);
        if self.serialize_on_write {
            match self.write_to_disk().await {
                Ok(_) => {}
                Err(e) => error!("Couldn't serialze to disk: {}", e),
            }
        }
    }
pub async fn delete ( & self , key : & str ) { let _old = self . store . write ( ) . await . remove ( key ) ; if self . serialize_on_write { match self . write_to_disk ( ) . await { Ok ( _ ) => { } Err ( e ) => error ! ( " " e ) , } } }
Removes an entry without returning the result.
Removes an entry without returning the result .
&self
key
&str
&self
key
&str