Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/velo/src/caches/slru.ts>SLRU#forEach

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

Array like forEach, iterating over all entries in the cache

Parameters

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

function to call on each item