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

x/velo/src/caches/lru.ts>LRU#forEach

Performant Cache implementations for Deno. Supports LRU, LFU, ARC and other caching policies.
Go to Latest
method LRU.prototype.forEach
import { LRU } from "https://deno.land/x/velo@0.1.5/src/caches/lru.ts";

Array like forEach, iterating over all entries in the cache

Parameters

callback: (item: { key: Key; value: V; }, index: number) => void

function to call on each item

optional
reverse: boolean = [UNSUPPORTED]

if true iterates through the list starting from the back