diff --git a/examples/refresh.mjs b/examples/refresh.mjs index 12231fcb..68e7aaab 100644 --- a/examples/refresh.mjs +++ b/examples/refresh.mjs @@ -24,6 +24,7 @@ const settings = await load(connectionString, { }], trimKeyPrefixes: ["app.settings."], refreshOptions: { + enabled: true, watchedSettings: [{ key: "app.settings.sentinel" }], refreshIntervalInMs: 10 * 1000 // Default value is 30 seconds, shorted for this sample } @@ -41,4 +42,4 @@ while (true) { // Waiting before the next refresh await sleepInMs(5000); -} \ No newline at end of file +}