CatapultServer
v0.5.0.1 (Elephant)
|
Policy for saving and loading block difficulty cache data. More...
Static Public Member Functions | |
static void | Save (const ValueType &info, io::OutputStream &output) |
Saves info to output. More... | |
static state::BlockDifficultyInfo | Load (io::InputStream &input) |
Loads a single value from input. More... | |
static void | Purge (const ValueType &info, DestinationType &cacheDelta) |
Purges value from cacheDelta. More... | |
Static Public Member Functions inherited from catapult::cache::CacheStorageForBasicInsertRemoveCache< BlockDifficultyCacheDescriptor > | |
static void | LoadInto (const typename BlockDifficultyCacheDescriptor ::ValueType &value, typename BlockDifficultyCacheDescriptor ::CacheDeltaType &cacheDelta) |
Loads value into cacheDelta. More... | |
static void | Purge (const typename BlockDifficultyCacheDescriptor ::ValueType &value, typename BlockDifficultyCacheDescriptor ::CacheDeltaType &cacheDelta) |
Purges value from cacheDelta. More... | |
Additional Inherited Members | |
Public Types inherited from catapult::cache::CacheStorageFromDescriptor< BlockDifficultyCacheDescriptor > | |
using | SourceType = typename BlockDifficultyCacheDescriptor ::CacheViewType |
Cache view type. More... | |
using | DestinationType = typename BlockDifficultyCacheDescriptor ::CacheDeltaType |
Cache delta type. More... | |
using | KeyType = typename BlockDifficultyCacheDescriptor ::KeyType |
Cache key type. More... | |
using | ValueType = typename BlockDifficultyCacheDescriptor ::ValueType |
Cache value type. More... | |
Policy for saving and loading block difficulty cache data.
|
static |
Loads a single value from input.
|
static |
Purges value from cacheDelta.
|
static |
Saves info to output.