This commit is contained in:
Dominic Grimm 2023-02-12 11:09:57 +01:00
parent e262fc8ab2
commit 1456184d30
No known key found for this signature in database
GPG key ID: 6F294212DEAAC530

View file

@ -53,6 +53,8 @@ pub fn clear(redis_conn: &mut Connection) -> Result<()> {
redis::cmd("UNLINK").arg(key).query(redis_conn)?; redis::cmd("UNLINK").arg(key).query(redis_conn)?;
} }
redis::cmd("UNLINK").arg(keys::TAGS).query(redis_conn)?;
for key in redis::cmd("KEYS") for key in redis::cmd("KEYS")
.arg(format!("{}*", keys::TAG_POSTS)) .arg(format!("{}*", keys::TAG_POSTS))
.query::<Vec<String>>(redis_conn)? .query::<Vec<String>>(redis_conn)?