CachedResponse
What a request returns to the cache: a value and how long it stays fresh.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { CachedResponse } from "@mapcairn/core";
interface CachedResponse<T>
Type parameters
T
Properties
maxAgeSeconds
readonly maxAgeSeconds: number;
Seconds the value may be reused. 0 keeps nothing.
value
readonly value: T;
The response that was cached.