CatapultServer
v0.5.0.1 (Elephant)
|
const TCache::CacheDeltaType & sub() const
Gets a specific sub cache delta view.
Definition: CatapultCacheDelta.h:47
std::unique_ptr< CacheStorage > createStorage() override
Returns a cache storage based on this cache.
Definition: BlockDifficultyCacheSubCachePlugin.cpp:41
Policy for saving and loading block difficulty cache data.
Definition: BlockDifficultyCacheStorage.h:28
Delta on top of a catapult cache.
Definition: CatapultCacheDelta.h:31
void saveSummary(const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const override
Saves cache (summary) data from cacheDelta to output.
Definition: BlockDifficultyCacheSubCachePlugin.cpp:25
static void Save(const ValueType &info, io::OutputStream &output)
Saves info to output.
Definition: BlockDifficultyCacheStorage.cpp:27
BlockDifficultyCache & cache()
Gets a typed reference to the underlying cache.
Definition: SubCachePluginAdapter.h:91
A CacheStorage implementation that wraps a cache and associated storage traits.
Definition: CacheStorageAdapter.h:31
CacheStorage implementation for saving and loading summary block difficulty cache data.
Definition: BlockDifficultyCacheSubCachePlugin.h:29
Specialized block difficulty cache sub cache plugin.
Definition: BlockDifficultyCacheSubCachePlugin.h:38
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
Definition: AddressExtractionExtension.cpp:28
BlockDifficultyCacheSubCachePlugin(uint64_t difficultyHistorySize)
Creates a plugin around difficultyHistorySize.
Definition: BlockDifficultyCacheSubCachePlugin.cpp:36
Synchronized cache composed of block difficulty information.
Definition: BlockDifficultyCache.h:45
Writer interface.
Definition: Stream.h:41
A SubCachePlugin implementation that wraps a SynchronizedCache.
Definition: SubCachePluginAdapter.h:32