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

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

Increments counter if it is not already at maximum. Returns true if the counter was incremented, false otherwise.

Parameters

hash: number
cHash: number
depthIndex: number