Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etl::CacheLoaderSettings Struct Reference

Settings for the cache loader. More...

#include <CacheLoaderSettings.hpp>

Classes

struct  CacheFileSettings
 Settings for cache file operations. More...

Public Types

enum class  LoadStyle { ASYNC , SYNC , NONE }
 Ways to load the cache.

Public Member Functions

auto operator<=> (CacheLoaderSettings const &) const =default
bool isSync () const
bool isAsync () const
bool isDisabled () const

Public Attributes

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< CacheFileSettingscacheFileSettings
 optional settings for cache file operations

Detailed Description

Settings for the cache loader.

Member Function Documentation

◆ 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: