Skip to content

CacheStore

Defined in: src/policies/traffic/cache.ts:13

Pluggable cache storage backend

delete(key): Promise<boolean>

Defined in: src/policies/traffic/cache.ts:19

Delete a cached entry. Returns true if something was removed.

string

Promise<boolean>


get(key): Promise<Response | null>

Defined in: src/policies/traffic/cache.ts:15

Retrieve a cached response by key. Returns null on miss.

string

Promise<Response | null>


put(key, response, ttlSeconds): Promise<void>

Defined in: src/policies/traffic/cache.ts:17

Store a response under key with a TTL in seconds.

string

Response

number

Promise<void>