pub(crate) async fn service_session_data(&self, session: &AxumSession) -> bool {
        if let Some(m) = self.inner.read().await.get(&session.id.inner()) {
            let mut inner = m.lock().await;

            if inner.expires < Utc::now() || inner.destroy {
                inner.longterm = false;
                inner.data = HashMap::new();
            }

            inner.autoremove = Utc::now() + self.config.memory_lifespan;
            return true;
        }

        false
    }
/// Attempts to load check and clear Data.
///
/// If no session is found returns false.
Attempts to load check and clear Data.
If no session is found returns false.
Attempts to load check and clear Data . If no session is found returns false .
pub(crate) async fn service_session_data(&self, session: &AxumSession) -> bool {
        if let Some(m) = self.inner.read().await.get(&session.id.inner()) {
            let mut inner = m.lock().await;
            if inner.expires < Utc::now() || inner.destroy {
                inner.longterm = false;
                inner.data = HashMap::new();
            }
            inner.autoremove = Utc::now() + self.config.memory_lifespan;
            return true;
        }
        false
    }
pub ( crate ) async fn service_session_data ( & self , session : & AxumSession ) -> bool { if let Some ( m ) = self . inner . read ( ) . await . get ( & session . id . inner ( ) ) { let mut inner = m . lock ( ) . await ; if inner . expires < Utc :: now ( ) || inner . destroy { inner . longterm = false ; inner . data = HashMap :: new ( ) ; } inner . autoremove = Utc :: now ( ) + self . config . memory_lifespan ; return true ; } false }
Attempts to load check and clear Data.
Attempts to load check and clear Data .
&self
session
&AxumSession
&self
session
&AxumSession