Skip to content

Commit

Permalink
chore: release foyer 0.11.0 (#663)
Browse files Browse the repository at this point in the history
* chore: release foyer 0.11.0

Signed-off-by: MrCroxx <[email protected]>

* chore: update change log and ci cache key

Signed-off-by: MrCroxx <[email protected]>

---------

Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Aug 21, 2024
1 parent bac9002 commit 4735526
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/template/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
env:
RUST_TOOLCHAIN_NIGHTLY: nightly-2024-03-17
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20240621
CACHE_KEY_SUFFIX: 20240821

jobs:
misc-check:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
env:
RUST_TOOLCHAIN_NIGHTLY: nightly-2024-03-17
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20240621
CACHE_KEY_SUFFIX: 20240821
jobs:
misc-check:
name: misc check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
env:
RUST_TOOLCHAIN_NIGHTLY: nightly-2024-03-17
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20240621
CACHE_KEY_SUFFIX: 20240821
jobs:
misc-check:
name: misc check
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## 2024-08-21

| crate | version |
| - | - |
| foyer | 0.11.0 |
| foyer-common | 0.9.0 |
| foyer-intrusive | 0.9.0 |
| foyer-memory | 0.7.0 |
| foyer-storage | 0.10.0 |
| foyer-bench | 0.3.0 |

<details>

### Changes

- Support disk cache on raw block device.
- Support fine-grained storage engine runtime configuration.
- Enhance performance via reducing page fault.
- Refine storage engine framework for future features.
- Expose `Weighter` trait.
- Support `serde` for more configurations.
- Update `foyer-bench` with more fine-grained configurations.
- Fix panices with `None` recover mode.

</details>

## 2024-08-15

| crate | version |
Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Feel free to open a PR and add your projects here:
To use *foyer* in your project, add this line to the `dependencies` section of `Cargo.toml`.

```toml
foyer = "0.10"
foyer = "0.11"
```

If your project is using the nightly rust toolchain, the `nightly` feature needs to be enabled.

```toml
foyer = { version = "0.10", features = ["nightly"] }
foyer = { version = "0.11", features = ["nightly"] }
```

### Out-of-the-box In-memory Cache
Expand Down Expand Up @@ -102,7 +102,7 @@ use anyhow::Result;
use chrono::Datelike;
use foyer::{
DirectFsDeviceOptionsBuilder, FifoPicker, HybridCache, HybridCacheBuilder, LruConfig, RateLimitPicker, RecoverMode,
RuntimeConfigBuilder, TombstoneLogConfigBuilder,
RuntimeConfig, TokioRuntimeConfig, TombstoneLogConfigBuilder,
};
use tempfile::tempdir;

Expand Down Expand Up @@ -143,12 +143,16 @@ async fn main() -> Result<()> {
.with_flush(true)
.build(),
)
.with_runtime_config(
RuntimeConfigBuilder::new()
.with_thread_name("foyer")
.with_worker_threads(4)
.build(),
)
.with_runtime_config(RuntimeConfig::Separated {
read_runtime_config: TokioRuntimeConfig {
worker_threads: 4,
max_blocking_threads: 8,
},
write_runtime_config: TokioRuntimeConfig {
worker_threads: 4,
max_blocking_threads: 8,
},
})
.build()
.await?;

Expand Down
4 changes: 2 additions & 2 deletions foyer-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "foyer-bench"
version = "0.2.3"
version = "0.3.0"
edition = "2021"
authors = ["MrCroxx <[email protected]>"]
description = "bench tool for foyer - the hybrid cache for Rust"
Expand All @@ -17,7 +17,7 @@ clap = { workspace = true }
console-subscriber = { version = "0.4", optional = true }
fastrace = { workspace = true, optional = true }
fastrace-jaeger = { workspace = true, optional = true }
foyer = { version = "0.10.4", path = "../foyer" }
foyer = { version = "0.11.0", path = "../foyer" }
futures = "0.3"
hdrhistogram = "7"
itertools = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion foyer-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "foyer-common"
version = "0.8.1"
version = "0.9.0"
edition = "2021"
authors = ["MrCroxx <[email protected]>"]
description = "common components for foyer - the hybrid cache for Rust"
Expand Down
4 changes: 2 additions & 2 deletions foyer-intrusive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "foyer-intrusive"
version = "0.8.1"
version = "0.9.0"
edition = "2021"
authors = ["MrCroxx <[email protected]>"]
description = "intrusive data structures for foyer - the hybrid cache for Rust"
Expand All @@ -11,7 +11,7 @@ readme = "../README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
foyer-common = { version = "0.8.1", path = "../foyer-common" }
foyer-common = { version = "0.9.0", path = "../foyer-common" }
itertools = { workspace = true }

[features]
Expand Down
6 changes: 3 additions & 3 deletions foyer-memory/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "foyer-memory"
version = "0.6.1"
version = "0.7.0"
edition = "2021"
authors = ["MrCroxx <[email protected]>"]
description = "memory cache for foyer - the hybrid cache for Rust"
Expand All @@ -15,8 +15,8 @@ ahash = "0.8"
bitflags = "2"
cmsketch = "0.2.1"
fastrace = { workspace = true }
foyer-common = { version = "0.8.1", path = "../foyer-common" }
foyer-intrusive = { version = "0.8.1", path = "../foyer-intrusive" }
foyer-common = { version = "0.9.0", path = "../foyer-common" }
foyer-intrusive = { version = "0.9.0", path = "../foyer-intrusive" }
futures = "0.3"
hashbrown = "0.14"
itertools = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions foyer-storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "foyer-storage"
version = "0.9.3"
version = "0.10.0"
edition = "2021"
authors = ["MrCroxx <[email protected]>"]
description = "storage engine for foyer - the hybrid cache for Rust"
Expand All @@ -24,8 +24,8 @@ bytes = "1"
clap = { workspace = true }
either = "1"
fastrace = { workspace = true }
foyer-common = { version = "0.8.1", path = "../foyer-common" }
foyer-memory = { version = "0.6.1", path = "../foyer-memory" }
foyer-common = { version = "0.9.0", path = "../foyer-common" }
foyer-memory = { version = "0.7.0", path = "../foyer-memory" }
futures = "0.3"
itertools = { workspace = true }
lazy_static = "1"
Expand Down
8 changes: 4 additions & 4 deletions foyer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "foyer"
version = "0.10.4"
version = "0.11.0"
edition = "2021"
authors = ["MrCroxx <[email protected]>"]
description = "Hybrid cache for Rust"
Expand All @@ -15,9 +15,9 @@ rust-version = "1.77"
ahash = "0.8"
anyhow = "1"
fastrace = { workspace = true }
foyer-common = { version = "0.8.1", path = "../foyer-common" }
foyer-memory = { version = "0.6.1", path = "../foyer-memory" }
foyer-storage = { version = "0.9.3", path = "../foyer-storage" }
foyer-common = { version = "0.9.0", path = "../foyer-common" }
foyer-memory = { version = "0.7.0", path = "../foyer-memory" }
foyer-storage = { version = "0.10.0", path = "../foyer-storage" }
futures = "0.3"
pin-project = "1"
tokio = { workspace = true }
Expand Down

0 comments on commit 4735526

Please sign in to comment.