@ptkl/sdk 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/v0.10/types/thunder.d.ts +14 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
export type ThunderReadOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* Maximum age, in seconds, of a cached response you are willing to accept.
|
|
4
|
+
*
|
|
5
|
+
* - omitted — serve whatever is cached, regardless of age (Thunder's
|
|
6
|
+
* historical behaviour, and still the cheapest read)
|
|
7
|
+
* - `0` — skip the cache and read from the database
|
|
8
|
+
* - `> 0` — serve a cached response only if it is younger than this many
|
|
9
|
+
* seconds, otherwise refresh from the database
|
|
10
|
+
*
|
|
11
|
+
* Not clamped: `1` and `86400` are both honoured.
|
|
12
|
+
*
|
|
13
|
+
* Note this differs from the component read option of the same name, where
|
|
14
|
+
* an omitted value behaves like `0` and the value is clamped to 5-300s.
|
|
15
|
+
*/
|
|
2
16
|
cacheTTL?: number;
|
|
3
17
|
only?: string[];
|
|
4
18
|
};
|