Settings for the cache loader.
More...
#include <CacheLoaderSettings.hpp>
|
| enum class | LoadStyle { ASYNC
, SYNC
, NONE
} |
| | Ways to load the cache.
|
|
|
size_t | numCacheDiffs = 32 |
| | number of diffs to use to generate cursors
|
|
size_t | numCacheMarkers = 48 |
| | number of markers to use at one time to traverse the ledger
|
|
size_t | cachePageFetchSize = 512 |
| | number of ledger objects to fetch concurrently per marker
|
|
size_t | numThreads = 2 |
| | number of threads to use for loading cache
|
|
size_t | numCacheCursorsFromDiff = 0 |
| | number of cursors to fetch from diff
|
|
size_t | numCacheCursorsFromAccount = 0 |
| | number of cursors to fetch from account_tx
|
|
LoadStyle | loadStyle = LoadStyle::ASYNC |
| | how to load the cache
|
|
std::optional< CacheFileSettings > | cacheFileSettings |
| | optional settings for cache file operations
|
Settings for the cache loader.
◆ isAsync()
| bool etl::CacheLoaderSettings::isAsync |
( |
| ) |
const |
|
nodiscard |
- Returns
- True if the load style is ASYNC; false otherwise
◆ isDisabled()
| bool etl::CacheLoaderSettings::isDisabled |
( |
| ) |
const |
|
nodiscard |
- Returns
- True if the cache is disabled; false otherwise
◆ isSync()
| bool etl::CacheLoaderSettings::isSync |
( |
| ) |
const |
|
nodiscard |
- Returns
- True if the load style is SYNC; false otherwise
The documentation for this struct was generated from the following files: