PgCacheable interface

What the PgCache() decorator adds to the class it is applied to. A decorated service gains these three members, so code inside the service can reach the cache and the subscription directly.

Signature:

export interface PgCacheable 

Properties

Property

Modifiers

Type

Description

pgCacheChannels

PgCacheChannels

Table-to-method registry built by the cacheWith() and cacheBy() method decorators at class-definition time, and read when a notification arrives to decide what to invalidate.

pubSub

PgPubSub

PostgreSQL LISTEN/NOTIFY subscription the triggers publish to. One channel per watched table.

taggedCache

TagCache

Tagged redis cache holding the memoised method results. Each entry is tagged with the tables it depends on, which is how a change notification invalidates exactly the right entries.

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