@@ -60,7 +60,7 @@ You can also activate features such as local and silent mode:
6060
6161``` js
6262const local = true ;
63- const static = true ;
63+ const freeze = true ;
6464const logger = true ;
6565const snapshotLocation = ' ./snapshot/' ;
6666const snapshotAutoUpdateInterval = 3 ;
@@ -70,15 +70,15 @@ const restrictRelay = true;
7070const certPath = ' ./certs/ca.pem' ;
7171
7272Client .buildContext ({ url, apiKey, domain, component, environment }, {
73- local, static , logger, snapshotLocation, snapshotAutoUpdateInterval,
73+ local, freeze , logger, snapshotLocation, snapshotAutoUpdateInterval,
7474 snapshotWatcher, silentMode, restrictRelay, certPath
7575});
7676
7777const switcher = Client .getSwitcher ();
7878```
7979
8080- ** local** : If activated, the client will only fetch the configuration inside your snapshot file. The default value is 'false'
81- - ** static ** : If activated, the client will not perform any API calls and will only use the in-memory snapshot . The default value is 'false'
81+ - ** freeze ** : If activated, prevents the execution of background cache update when using throttle . The default value is 'false'
8282- ** logger** : If activated, it is possible to retrieve the last results from a given Switcher key using Client.getLogger('KEY')
8383- ** snapshotLocation** : Location of snapshot files
8484- ** snapshotAutoUpdateInterval** : Enable Snapshot Auto Update given an interval in seconds (default: 0 disabled)
0 commit comments