An open API service indexing awesome lists of open source software.

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

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.

![How it works](how-it-works.png)

# 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/