CacheWithOptions interface

Options for the cacheWith() method decorator: which tables invalidate the cached result, how long it may live, and the tag it is stored under.

Signature:

export interface CacheWithOptions 

Properties

Property

Modifiers

Type

Description

channels

string[] | FilteredChannels

PgBubSub channels to listen for invalidation. Usually channels are table names.

tag?

string

(Optional) Tag to use for this cache when set a value

ttl?

number

(Optional) Time to live in milliseconds. By default is equivalent to 24 hours

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.