class BaseCache
extends EventEmitter
Abstract
import { BaseCache } from "https://deno.land/x/velo@0.1.5/src/caches/base.ts";
Constructors
new
BaseCache(options: Options)Properties
protected
_stats: CacheStatisticsreadonly
stats: CacheStatisticsCache statistics containing amount of keys, total hits and total misses
Methods
protected
applyClearEvent()protected
applyExpiredEvent(key: Key, value: V)protected
applyRemoveEvent(key: Key, value: V)protected
applySetEvent(key: Key, value: V)abstract
clear(): voidimport { type BaseCache } from "https://deno.land/x/velo@0.1.5/src/caches/base.ts";