From 9c82340c371f2d57f0db4cd6bb06fdd1c1ae3f75 Mon Sep 17 00:00:00 2001 From: Yiling-J Date: Mon, 4 Nov 2024 09:18:11 +0800 Subject: [PATCH] add v2 details to README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6ee8247..be24b9d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ **IMPORTANT: Theine is currently undergoing a major rewrite and refactor to become a thread-safe, high-performance concurrent cache. V2 will support free-threading in Python and will focus on enhancing multi-threading performance. Some APIs will change in the update.** +Planned Updates in V2 +- **Single Policy**: V2 will feature only one caching policy, Adaptive Window-TinyLFU, so the policy option in the API will be removed. +- **Improved Hit Ratio**: The current TinyLFU (tlfu) policy will be optimized to achieve a higher hit ratio. +- **Unified Expiration Thread**: Instead of each cache instance using a separate thread for proactive expiration as in V1, V2 will utilize a single thread, with all cache instances scheduling expirations through asyncio. +- **Enhanced Thread Safety and Concurrency**: Mutexes will be added to ensure thread safety, alongside advanced concurrency optimizations such as sharding to boost performance. +- **Memory Optimization**: Memory usage per cached item will be reduced. + +--- + High performance in-memory cache inspired by [Caffeine](https://github.com/ben-manes/caffeine). - High performance [Rust core](https://github.com/Yiling-J/theine-core)