https://github.com/linux-china/sieve-cache
SIEVE is simpler than LRU
https://github.com/linux-china/sieve-cache
Last synced: about 1 year ago
JSON representation
SIEVE is simpler than LRU
- Host: GitHub
- URL: https://github.com/linux-china/sieve-cache
- Owner: linux-china
- License: apache-2.0
- Created: 2024-01-04T08:46:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T15:45:00.000Z (about 2 years ago)
- Last Synced: 2025-04-02T02:51:13.881Z (over 1 year ago)
- Language: Java
- Size: 256 KB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
SIEVE Cache in Java
===================
SIEVE is simpler than LRU with following features:
* Simplicity: easy to implement and can be easily integrated into existing systems.
* Efficiency: achieves state-of-the-art efficiency on skewed workloads.
* Cache Primitive: facilitates the design of advanced eviction algorithms.

# Get started
* Add dependency to `pom.xml`:
```xml
org.mvnsearch
sieve-cache
0.1.0
```
* Create a cache instance and use it:
```
Cache cache = new SieveCache<>();
cache.put("nick", "Jackie");
System.out.println(cache.get("nick"));
```
# References
* SIEVE: https://cachemon.github.io/SIEVE-website/
* SIEVE is simpler than LRU: https://cachemon.github.io/SIEVE-website/blog/2023/12/17/sieve-is-simpler-than-lru/