|
CatapultServer
v0.5.0.1 (Elephant)
|
CacheStorage implementation for saving and loading summary cache data. More...


Public Member Functions | |
| SummaryCacheStorage (TCache &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 |
| virtual void | saveAll (const CatapultCacheView &cacheView, io::OutputStream &output) const =0 |
| Saves cache data from cacheView to output. More... | |
| virtual void | saveSummary (const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const =0 |
| Saves cache (summary) data from cacheDelta to output. More... | |
| virtual void | loadAll (io::InputStream &input, size_t batchSize)=0 |
| Loads cache data from input in batches of batchSize. More... | |
Protected Member Functions | |
| const TCache & | cache () const |
| Gets a typed const reference to the underlying cache. More... | |
| TCache & | cache () |
| Gets a typed reference to the underlying cache. More... | |
Private Attributes | |
| TCache & | m_cache |
| std::string | m_name |
CacheStorage implementation for saving and loading summary cache data.
|
inlineexplicit |
Creates a storage around cache.
|
inlineprotected |
Gets a typed reference to the underlying cache.
|
inlineprotected |
Gets a typed const reference to the underlying cache.
|
inlineoverridevirtual |
Gets the cache name.
Implements catapult::cache::CacheStorage.
|
private |
|
private |