Function freedit::clear_invalid

source ·
pub async fn clear_invalid(db: &Db, tree_name: &str) -> Result<(), AppError>
Expand description

Cron job: Scan all the keys in the Tree regularly and remove the expired ones.

The keys must be the format of timestamp_id.