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

x/velo/src/models/options.ts>Options

Performant Cache implementations for Deno. Supports LRU, LFU, ARC and other caching policies.
Go to Latest
interface Options
import { type Options } from "https://deno.land/x/velo@0.1.5/src/models/options.ts";

Properties

capacity: number

Maximum capacity of the cache

optional
stdTTL: number

Optional Standard TTL in milliseconds. If set this will be used as fallback if keys are set without a specified ttl.

optional
setEvent: boolean

True if the cache emits an event when a key gets added

optional
clearEvent: boolean

True if the cache emits an event when the cache gets cleared

optional
expiredEvent: boolean

True if the cache emits an event when a key expires

optional
removeEvent: boolean

True if the cache emits an event when a key is removed