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

Settings for the cache loader. More...

#include <CacheLoaderSettings.hpp>

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
 
size_t numCacheMarkers = 48
 
size_t cachePageFetchSize = 512
 
size_t numThreads = 2
 
size_t numCacheCursorsFromDiff = 0
 
size_t numCacheCursorsFromAccount = 0
 
LoadStyle loadStyle = LoadStyle::ASYNC
 

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

Member Data Documentation

◆ cachePageFetchSize

size_t etl::CacheLoaderSettings::cachePageFetchSize = 512

number of ledger objects to fetch concurrently per marker

◆ loadStyle

LoadStyle etl::CacheLoaderSettings::loadStyle = LoadStyle::ASYNC

how to load the cache

◆ numCacheCursorsFromAccount

size_t etl::CacheLoaderSettings::numCacheCursorsFromAccount = 0

number of cursors to fetch from account_tx

◆ numCacheCursorsFromDiff

size_t etl::CacheLoaderSettings::numCacheCursorsFromDiff = 0

number of cursors to fetch from diff

◆ numCacheDiffs

size_t etl::CacheLoaderSettings::numCacheDiffs = 32

number of diffs to use to generate cursors

◆ numCacheMarkers

size_t etl::CacheLoaderSettings::numCacheMarkers = 48

number of markers to use at one time to traverse the ledger

◆ numThreads

size_t etl::CacheLoaderSettings::numThreads = 2

number of threads to use for loading cache


The documentation for this struct was generated from the following files: