Skip to content

Commit

Permalink
add doc for block cache
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 9, 2023
1 parent 5327744 commit 47ebd82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/actix-kv/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-kv"
version = "1.0.0"
version = "0.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/actix-triplestore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-triplestore"
version = "0.1.0"
version = "0.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/structured/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "structured"
version = "0.1.0"
version = "0.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
5 changes: 4 additions & 1 deletion src/block_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ use std::sync::Arc;
type Key = (u8, String, UserKey);
type Item = Either<Arc<ValueBlock>, Arc<BlockHandleBlock>>;

/// Block cache
/// Block cache, in which blocks are cached in-memory
/// after being retrieved from disk. This speeds up
/// consecutive queries to nearby data, improving read
/// performance for hot data.
///
/// # Examples
///
Expand Down

0 comments on commit 47ebd82

Please sign in to comment.