MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / reset_redis

Function reset_redis

chirpstack/src/storage/mod.rs:257–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255
256#[cfg(test)]
257pub async fn reset_redis() -> Result<()> {
258 () = redis::cmd("FLUSHDB")
259 .query_async(&mut get_async_redis_conn().await?)
260 .await?;
261 Ok(())
262}
263
264#[cfg(test)]
265mod test {

Callers 7

prepareFunction · 0.85
run_testFunction · 0.85
run_scheduler_testFunction · 0.85
run_uplink_testFunction · 0.85
run_scheduler_testFunction · 0.85
run_testFunction · 0.85
run_testFunction · 0.85

Calls 1

get_async_redis_connFunction · 0.85

Tested by 7

prepareFunction · 0.68
run_testFunction · 0.68
run_scheduler_testFunction · 0.68
run_uplink_testFunction · 0.68
run_scheduler_testFunction · 0.68
run_testFunction · 0.68
run_testFunction · 0.68