Skip to main content
zerotal

Documentation


Documentation / @zerotal/cache / index / CacheQueried

Class: CacheQueried

Defined in: cache/src/events.ts:12

Emitted after a cache read, write, delete, flush, or existence check. op records which operation ran (a read is either hit or miss).

Constructors

Constructor

new CacheQueried(op, key, ttl, durationMs): CacheQueried

Defined in: cache/src/events.ts:13

Parameters

op

"has" | "forget" | "hit" | "miss" | "write" | "flush"

key

string

ttl

number | undefined

durationMs

number

Returns

CacheQueried

Properties

op

readonly op: "has" | "forget" | "hit" | "miss" | "write" | "flush"

Defined in: cache/src/events.ts:14


key

readonly key: string

Defined in: cache/src/events.ts:15


ttl

readonly ttl: number | undefined

Defined in: cache/src/events.ts:16


durationMs

readonly durationMs: number

Defined in: cache/src/events.ts:17