CatapultServer
v0.5.0.1 (Elephant)
|
CacheChangesStorage implementation that wraps a cache and associated storage traits. More...
Public Member Functions | |
CacheChangesStorageAdapter (TCache &cache) | |
Creates an adapter around cache. More... | |
void | saveAll (const CacheChanges &changes, io::OutputStream &output) const override |
Saves cache changes to output. More... | |
std::unique_ptr< const MemoryCacheChanges > | loadAll (io::InputStream &input) const override |
Loads cache changes from input. More... | |
void | apply (const CacheChanges &changes) const override |
Applies cache changes to the underlying cache. More... | |
Public Member Functions inherited from catapult::cache::CacheChangesStorage | |
virtual | ~CacheChangesStorage ()=default |
Private Attributes | |
TCache & | m_cache |
CacheChangesStorage implementation that wraps a cache and associated storage traits.
|
inlineexplicit |
Creates an adapter around cache.
|
inlineoverridevirtual |
Applies cache changes to the underlying cache.
Implements catapult::cache::CacheChangesStorage.
|
inlineoverridevirtual |
Loads cache changes from input.
Implements catapult::cache::CacheChangesStorage.
|
inlineoverridevirtual |
Saves cache changes to output.
Implements catapult::cache::CacheChangesStorage.
|
private |