Skip to content

Commit b484847

Browse files
committed
Support per-key locking for concurrent write serialization
1 parent 9a56358 commit b484847

5 files changed

Lines changed: 409 additions & 0 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ categories = ["database", "network-programming"]
1717
thiserror = "2"
1818
base64 = "0.22"
1919
blake3 = "1.8"
20+
dashmap = "6.1"
21+
tokio = { version = "1.49", default-features = false }

minikv-core/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ categories.workspace = true
1414
thiserror.workspace = true
1515
base64 = { workspace = true }
1616
blake3 = { workspace = true }
17+
dashmap = { workspace = true }
18+
19+
[dev-dependencies]
20+
tokio = { workspace = true, features = ["full"] }

minikv-core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pub mod hashing;
2+
pub mod locking;
23
pub mod volumes;

0 commit comments

Comments
 (0)