moonbitstack/moonkart/policy does not have a README file
pub(open) trait Policy {
fn hit(self : Self, id : Int64, hash : Int) -> Unit
fn admit(self : Self, id : Int64, weight : Int64, hash : Int) -> Array[Int64]
fn forget(self : Self, id : Int64) -> Unit
fn size(self : Self) -> Int
}pub struct IntrusiveList {
// private fields
}pub struct Link {
// private fields
}pub struct Lru {
// private fields
}pub struct S3Fifo {
// private fields
}pub struct Sketch {
// private fields
}pub struct Tinylfu {
// private fields
}fn new_tinylfu(cap? : Int64, max_weight? : Int64, window_ratio? : Double, protected_ratio? : Double) -> Tinylfulet tinylfu_protected_ratio : Doublelet tinylfu_window_ratio : DoubleInstall
Download zipA cache for MoonBit: bounded by count or weight, with expiry, loaders and eviction listeners.