diff --git a/Cargo.toml b/Cargo.toml index 2b34cb6..ffa5750 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ chrono = { version = "0.4", features = ["serde", "clock"], default-features = fa async-trait = "0.1" hex = "0.4" backoff = { version = "0.4", features = ["tokio"] } -redb = { version = "1.5", optional = true } +redb = { version = "2.0", optional = true } moka = { version = "0.12", features = ["future"], optional = true } # Caching library [dev-dependencies] diff --git a/src/cache/backends/persistent_backend.rs b/src/cache/backends/persistent_backend.rs index 267d8ac..b538aa5 100644 --- a/src/cache/backends/persistent_backend.rs +++ b/src/cache/backends/persistent_backend.rs @@ -287,7 +287,7 @@ impl FirestoreCacheBackend for FirestorePersistentCacheBackend { "Invalidating collection and draining the corresponding table.", ); let mut table = write_txn.open_table(td)?; - table.drain::<&str>(..)?; + table.retain(|_, _| false)?; } write_txn.commit()?; }