Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #30

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft

V2 #30

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: "Mypy api failed"
run: |
error_count=$(make lint-failed 2>&1 | grep -c 'error:')
[ "$error_count" -eq 4 ]
[ "$error_count" -eq 8 ]
- name: "Run Tests"
env:
CI: "TRUE"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ High performance in-memory cache inspired by [Caffeine](https://github.com/ben-m
- High performance [Rust core](https://github.com/Yiling-J/theine-core)
- High hit ratio with [W-TinyLFU](https://arxiv.org/pdf/1512.00727.pdf) or [Clock-Pro](https://static.usenix.org/event/usenix05/tech/general/full_papers/jiang/jiang_html/html.html) eviction policy
- Expired data are removed automatically using [hierarchical timer wheel](http://www.cs.columbia.edu/~nahum/w6998/papers/ton97-timing-wheels.pdf)

> TTL must be considered in in-memory caching because
it limits the effective (unexpired) working set size. Efficiently removing expired objects from cache needs to be
prioritized over cache eviction. - [A large scale analysis of hundreds of in-memory
cache clusters at Twitter](https://www.usenix.org/system/files/osdi20-yang.pdf)
- Simple API
- Fully typed
- Django cache backend

# **Theine V2 Migration Guide**

Theine V2 is a major refactor and rewrite of V1, with a focus on thread safety and scalability, leveraging the free-threading capabilities introduced in Python 3.13. While there are also several internal improvements, the most significant changes for V1 users are the updates to the API.


## Table of Contents

- [Requirements](#requirements)
Expand Down
289 changes: 0 additions & 289 deletions benchmarks/benchmark_test.py

This file was deleted.

Loading
Loading