Clio develop
The XRP Ledger API server.
|
Cache loading interface. More...
#include <CacheLoader.hpp>
Public Member Functions | |
CacheLoader (util::config::ClioConfigDefinition const &config, std::shared_ptr< BackendInterface > const &backend, CacheType &cache) | |
Construct a new Cache Loader object. | |
void | load (uint32_t const seq) |
Load the cache for the given sequence number. | |
void | stop () noexcept |
Requests the loader to stop asap. | |
void | wait () noexcept |
Waits for the loader to finish background work. | |
Cache loading interface.
This class is responsible for loading the cache for a given sequence number.
CacheType | The type of the cache to load |
CursorProviderType | The type of the cursor provider to use |
ExecutionContextType | The type of the execution context to use |
|
inline |
Construct a new Cache Loader object.
config | The configuration to use |
backend | The backend to use |
cache | The cache to load into |
|
inline |
Load the cache for the given sequence number.
This function is blocking if the cache load style is set to sync and disables the cache entirely if the load style is set to none/no.
seq | The sequence number to load cache for |