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

x/velo/src/policy/tiny_lfu/frequency_sketch.ts>FrequencySketch#increment

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.
Latest
method FrequencySketch.prototype.increment
import { FrequencySketch } from "https://deno.land/x/velo@1.0.0/src/policy/tiny_lfu/frequency_sketch.ts";

Increments popularity of given item up to a maximum. Downsamples popularity if a certain threshold is reached.

Parameters

hash: number