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

x/velo/src/cache/capabilities/event_capability.ts>VeloEventEmitter

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.
Latest
interface VeloEventEmitter
implements EventEmitter
import { type VeloEventEmitter } from "https://deno.land/x/velo@1.0.0/src/cache/capabilities/event_capability.ts";

Defines the events emitted by the cache

Methods

on(name: "remove", listener: KeyEventFunction<K>): this
on(name: "expire", listener: KeyValueEventFunction<K, V>): this
on(name: "set", listener: KeyValueEventFunction<K, V>): this
on(name: "get", listener: KeyValueEventFunction<K, V | undefined>): this
on(name: "clear", listener: EmptyEventFunction): this