You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config-description.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -441,6 +441,22 @@ This document provides a list of all available Clio configuration properties in
441
441
-**Constraints**: The value must be one of the following: `sync`, `async`, `none`.
442
442
-**Description**: The strategy used for Cache loading.
443
443
444
+
### cache.file.path
445
+
446
+
-**Required**: False
447
+
-**Type**: string
448
+
-**Default value**: None
449
+
-**Constraints**: None
450
+
-**Description**: The path to a file where cache will be saved to on shutdown and loaded from on startup. If the file couldn't be read Clio will load cache as usual (from DB or from rippled).
451
+
452
+
### cache.file.max_sequence_age
453
+
454
+
-**Required**: True
455
+
-**Type**: int
456
+
-**Default value**: `5000`
457
+
-**Constraints**: None
458
+
-**Description**: Max allowed difference between the latest sequence in DB and in cache file. If the cache file is too old (contains too low latest sequence) Clio will reject using it.
Copy file name to clipboardExpand all lines: docs/examples/config/example-config.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,11 @@
137
137
// "num_cursors_from_account": 3200, // Read the cursors from the account table until we have enough cursors to partition the ledger to load concurrently.
138
138
"num_markers": 48, // The number of markers is the number of coroutines to load the cache concurrently.
139
139
"page_fetch_size": 512, // The number of rows to load for each page.
140
-
"load": "async"// "sync" to load cache synchronously or "async" to load cache asynchronously or "none"/"no" to turn off the cache.
140
+
"load": "async", // "sync" to load cache synchronously or "async" to load cache asynchronously or "none"/"no" to turn off the cache.
0 commit comments