Skip to content

Commit

Permalink
Add an in-memory block cache (#137)
Browse files Browse the repository at this point in the history
Adds an in-memory cache to SlateDB. The cache allows us to store blocks, bloom
filters, and indexes. Currently, we only use it for blocks.

Fixes  #15
  • Loading branch information
pragmaticanon authored Sep 6, 2024
1 parent 3cc8ff8 commit 5cce0fb
Show file tree
Hide file tree
Showing 20 changed files with 795 additions and 185 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.DS_Store
163 changes: 133 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ snap = { version = "1.1.1", optional = true }
flate2 = { version = "1.0.31", optional = true }
lz4_flex = { version = "0.11.3", optional = true }
zstd = { version = "0.13.2", optional = true }
moka = { version = "0.12.8", features = ["future"] }

[dev-dependencies]
tokio = { version = "1.37.0", features = ["rt-multi-thread"] }
Expand Down
Loading

0 comments on commit 5cce0fb

Please sign in to comment.