Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Sieve_Cache

lock_free.Sieve_Cache

§
(K 
type
, V 
type
, capacity i32)
 ref
:
Any
 is

"SIEVE is a cache eviction algorithm that decides what to keep in the cache and what to discard.
It achieves both simplicity and efficiency."
source: https://sievecache.com/
paper : https://junchengyang.com/publication/nsdi24-SIEVE.pdf

example usage:

Type Parameters

§
K
:
Any 
[Private constructor]
§
V
:
Any 
[Private constructor]

Fields

§
capacity
 i32

Functions

§
(key lock_free.Sieve_Cache.K, val Function lock_free.Sieve_Cache.V)
 => 
lock_free.Sieve_Cache.V
access stored value for key,
if not in cache, compute and store in cache
§
 => 
String  
[Redefinition of  Any.as_string]

redefines: