We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5552a commit 615cb84Copy full SHA for 615cb84
examples/refresh.mjs
@@ -24,6 +24,7 @@ const settings = await load(connectionString, {
24
}],
25
trimKeyPrefixes: ["app.settings."],
26
refreshOptions: {
27
+ enabled: true,
28
watchedSettings: [{ key: "app.settings.sentinel" }],
29
refreshIntervalInMs: 10 * 1000 // Default value is 30 seconds, shorted for this sample
30
}
@@ -41,4 +42,4 @@ while (true) {
41
42
43
// Waiting before the next refresh
44
await sleepInMs(5000);
-}
45
+}
0 commit comments