Skip to content

PrCache

Defined in: src/pr-poller.ts:8

Read/write handle the HTTP layer uses to serve snapshots and apply instant updates from PR actions. PrPoller implements it.

drop(id): void

Defined in: src/pr-poller.ts:14

string

void


get(id): GitState | undefined

Defined in: src/pr-poller.ts:12

Read one session’s cached state without materializing the whole map — O(1) for per-request callers (e.g. GET /git) that only need a single key.

string

GitState | undefined


set(id, git): void

Defined in: src/pr-poller.ts:13

string

GitState

void


snapshot(): Record<string, GitState>

Defined in: src/pr-poller.ts:9

Record<string, GitState>