Skip to content

Commit

Permalink
Migrated to redb v2
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Apr 2, 2024
1 parent aaad6f7 commit f191271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/cache/backends/persistent_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
}
Expand Down

0 comments on commit f191271

Please sign in to comment.