Skip to content

Commit 338640c

Browse files
TKorrcursoragent
andcommitted
Release version 0.4.0
- Add CAR (Clock with Adaptive Replacement) eviction policy - Introduce policy feature flags for modular builds - Enhanced documentation with improved README and Quick Start guide - Update default features to include core policies for smaller builds Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8ab374c commit 338640c

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.4.0] - 2026-02-18
11+
12+
### Added
13+
- CAR (Clock with Adaptive Replacement) cache policy (`CarCache`) combining ARC-like adaptivity with Clock mechanics for enhanced concurrency and reduced overhead.
14+
- Policy feature flags for modular builds:
15+
- `policy-fifo`, `policy-lru`, `policy-fast-lru`, `policy-lru-k`, `policy-lfu`, `policy-heap-lfu`
16+
- `policy-two-q`, `policy-s3-fifo`, `policy-arc`, `policy-car`, `policy-lifo`, `policy-mfu`
17+
- `policy-mru`, `policy-random`, `policy-slru`, `policy-clock`, `policy-clock-pro`, `policy-nru`
18+
- `policy-all` feature for enabling all policies at once
19+
- Default features now include: `policy-s3-fifo`, `policy-lru`, `policy-fast-lru`, `policy-lru-k`, `policy-clock`
20+
- CAR policy integration in `CacheBuilder` for convenient cache creation
21+
- TinyLFU/W-TinyLFU added to roadmap for future implementation
22+
23+
### Documentation
24+
- Complete CAR policy documentation (`docs/policies/car.md`) with architecture, operations, and performance trade-offs
25+
- Enhanced README with comprehensive Table of Contents and Quick Start section
26+
- Updated policy documentation to include feature flag requirements for each policy
27+
- Improved integration guide with feature flag usage examples
28+
- Added TinyLFU/W-TinyLFU to policy roadmap
29+
- New compatibility and features guide (`docs/guides/compatibility-and-features.md`)
30+
31+
### Changed
32+
- Default feature set now includes specific policies instead of all policies, enabling smaller builds
33+
- Benchmark support now uses `policy-all` feature for comprehensive testing
34+
- Policy module organization updated to support conditional compilation
35+
- Documentation consistently references feature flags for policy enablement
36+
37+
### Benefits
38+
- **Modular Builds**: Enable only the policies you need for smaller binary sizes
39+
- **Adaptive Eviction**: CAR policy provides ARC-like adaptivity with better concurrency
40+
- **Flexible Configuration**: Choose between comprehensive defaults or minimal custom builds
41+
1042
## [0.3.0] - 2026-02-11
1143

1244
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44

55
[package]
66
name = "cachekit"
7-
version = "0.3.0"
7+
version = "0.4.0"
88
edition = "2024"
99
rust-version = "1.85"
1010
authors = ["Thomas Korrison <ferrite.db@gmail.com>"]

0 commit comments

Comments
 (0)