CatapultServer
v0.5.0.1 (Elephant)
|
CacheStorage implementation for saving and loading summary account state cache data. More...
Public Member Functions | |
void | saveAll (const CatapultCacheView &cacheView, io::OutputStream &output) const override |
Saves cache data from cacheView to output. More... | |
void | saveSummary (const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const override |
Saves cache (summary) data from cacheDelta to output. More... | |
void | loadAll (io::InputStream &input, size_t) override |
Loads cache data from input in batches of batchSize. More... | |
Public Member Functions inherited from catapult::cache::SummaryCacheStorage< AccountStateCache > | |
SummaryCacheStorage (AccountStateCache &cache) | |
Creates a storage around cache. More... | |
const std::string & | name () const override |
Gets the cache name. More... | |
Public Member Functions inherited from catapult::cache::CacheStorage | |
virtual | ~CacheStorage ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::cache::SummaryCacheStorage< AccountStateCache > | |
const AccountStateCache & | cache () const |
Gets a typed const reference to the underlying cache. More... | |
AccountStateCache & | cache () |
Gets a typed reference to the underlying cache. More... | |
CacheStorage implementation for saving and loading summary account state cache data.
|
overridevirtual |
Loads cache data from input in batches of batchSize.
Implements catapult::cache::CacheStorage.
|
overridevirtual |
Saves cache data from cacheView to output.
Implements catapult::cache::CacheStorage.
|
overridevirtual |
Saves cache (summary) data from cacheDelta to output.
Implements catapult::cache::CacheStorage.