Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/velo/mod.ts>WindowTinyLfu#evict

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.
Latest
method WindowTinyLfu.prototype.evict
import { WindowTinyLfu } from "https://deno.land/x/velo@1.0.0/mod.ts";

Evicts an entry from the window cache into the main cache's probationary segment, when the window cache is full. If the probationary segment is full, the TinyLFU admission policy is applied. Which chooses a winner between the window and main cache victim. The entry with the worse frequency is evicted.