pub async fn fetch_sliding_log(
        &mut self,
        resource: &str,
        subject: &str,
    ) -> Result<u64, Box<dyn Error>> {
        let key = format!("{}:{}:{}", KEY_PREFIX, resource, subject);

        let count: u64 = self.conn.zcard(key).await?;
        Ok(count)
    }
/// Returns the log's count.
Returns the log's count.
Returns the log ' s count .
pub async fn fetch_sliding_log(
        &mut self,
        resource: &str,
        subject: &str,
    ) -> Result<u64, Box<dyn Error>> {
        let key = format!("{}:{}:{}", KEY_PREFIX, resource, subject);
        let count: u64 = self.conn.zcard(key).await?;
        Ok(count)
    }
pub async fn fetch_sliding_log ( & mut self , resource : & str , subject : & str , ) -> Result < u64 , Box < dyn Error > > { let key = format ! ( " " KEY_PREFIX resource subject ) ; let count : u64 = self . conn . zcard ( key ) . await ? ; Ok ( count ) }
Returns the log's count.
Returns the log ' s count .
&mut self
resource
&str
subject
&str
&mut self
resource
&str
subject
&str