pub async fn clear_all(&self) {
        let store_rg = self.store.inner.read().await;

        if let Some(v) = store_rg.get(&self.id.0.to_string()) {
            let mut instance = v.lock().await;

            instance.data.clear();
        }

        if self.store.is_persistent() {
            self.store.clear_store().await.unwrap();
        }
    }
/// Clears all data from the Current Session's HashMap.
///
/// # Examples
/// ```rust no_run
/// session.clear_all().await;
/// ```
///
Clears all data from the Current Session's HashMap.
Clears all data from the Current Session ' s HashMap .
pub async fn clear_all(&self) {
        let store_rg = self.store.inner.read().await;
        if let Some(v) = store_rg.get(&self.id.0.to_string()) {
            let mut instance = v.lock().await;
            instance.data.clear();
        }
        if self.store.is_persistent() {
            self.store.clear_store().await.unwrap();
        }
    }
pub async fn clear_all ( & self ) { let store_rg = self . store . inner . read ( ) . await ; if let Some ( v ) = store_rg . get ( & self . id . 0 . to_string ( ) ) { let mut instance = v . lock ( ) . await ; instance . data . clear ( ) ; } if self . store . is_persistent ( ) { self . store . clear_store ( ) . await . unwrap ( ) ; } }
Clears all data from the Current Session's HashMap.
Clears all data from the Current Session ' s HashMap .
&self
&self
examples
```rust no_run
session.clear_all().await;
```
` ` ` rust no_run session . clear_all () . await ; ` ` `