CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::CacheConfiguration Struct Reference

Cache configuration. More...

Collaboration diagram for catapult::cache::CacheConfiguration:

Public Member Functions

 CacheConfiguration ()
 Creates a default cache configuration. More...
 
 CacheConfiguration (const std::string &databaseDirectory, utils::FileSize maxCacheDatabaseWriteBatchSize, PatriciaTreeStorageMode mode)
 

Public Attributes

bool ShouldUseCacheDatabase
 true if a cache database should be used, false otherwise. More...
 
std::string CacheDatabaseDirectory
 Base directory to use for storing cache database. More...
 
utils::FileSize MaxCacheDatabaseWriteBatchSize
 Maximum size of database write batch. More...
 
bool ShouldStorePatriciaTrees
 true if patricia trees should be stored, false otherwise. More...
 

Detailed Description

Cache configuration.

Constructor & Destructor Documentation

◆ CacheConfiguration() [1/2]

catapult::cache::CacheConfiguration::CacheConfiguration ( )
inline

Creates a default cache configuration.

◆ CacheConfiguration() [2/2]

catapult::cache::CacheConfiguration::CacheConfiguration ( const std::string &  databaseDirectory,
utils::FileSize  maxCacheDatabaseWriteBatchSize,
PatriciaTreeStorageMode  mode 
)
inlineexplicit

Creates a cache configuration around databaseDirectory, maxCacheDatabaseWriteBatchSize and specified patricia tree storage mode.

Member Data Documentation

◆ CacheDatabaseDirectory

std::string catapult::cache::CacheConfiguration::CacheDatabaseDirectory

Base directory to use for storing cache database.

◆ MaxCacheDatabaseWriteBatchSize

utils::FileSize catapult::cache::CacheConfiguration::MaxCacheDatabaseWriteBatchSize

Maximum size of database write batch.

◆ ShouldStorePatriciaTrees

bool catapult::cache::CacheConfiguration::ShouldStorePatriciaTrees

true if patricia trees should be stored, false otherwise.

◆ ShouldUseCacheDatabase

bool catapult::cache::CacheConfiguration::ShouldUseCacheDatabase

true if a cache database should be used, false otherwise.


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