Skip to content

Commit fdd7cd1

Browse files
committed
add rocksdb, mockable database, tests
1 parent 7109854 commit fdd7cd1

File tree

10 files changed

+1585
-982
lines changed

10 files changed

+1585
-982
lines changed

Cargo.lock

Lines changed: 180 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,20 @@ tokio = { version = "1.32.0", features = ["full"] }
2525
tracing = "0.1.37"
2626
serde_json = "1.0.107"
2727
serde = { version = "1.0.188", features = ["derive"] }
28-
redis = { version = "0.25.0", features = [
29-
"tokio-comp",
30-
"tokio-rustls-comp",
31-
"json",
32-
] }
28+
rocksdb = { version = "0.22.0", features = [
29+
"multi-threaded-cf",
30+
], optional = true }
3331
chrono = "0.4.31"
3432
thiserror = "1.0.49"
3533
async-trait = "0.1.73"
3634
num-traits = "0.2.17"
3735
bounded-integer = { version = "0.5.7", features = ["types", "num-traits02"] }
3836
aquamarine = "0.3.2"
3937
tiktoken-rs = "0.5.8"
38+
39+
[dev-dependencies]
40+
futures = "0.3"
41+
uuid = { version = "1.0", features = ["v4"] }
42+
43+
[features]
44+
rocksdb = ["dep:rocksdb"]

0 commit comments

Comments
 (0)