CatapultServer
v0.5.0.1 (Elephant)
|
Aggregate for saving cache data to external storage. More...
Public Types | |
using | StorageContainer = std::vector< std::unique_ptr< ExternalCacheStorage > > |
Container of sub cache storages. More... | |
Public Member Functions | |
AggregateExternalCacheStorage (StorageContainer &&storages) | |
Creates an aggregate around storages. More... | |
void | saveDelta (const cache::CacheChanges &changes) override |
Saves cache changes to external storage. More... | |
Public Member Functions inherited from catapult::mongo::ExternalCacheStorage | |
virtual | ~ExternalCacheStorage ()=default |
const std::string & | name () const |
Gets the cache name. More... | |
size_t | id () const |
Gets the cache id. More... | |
Private Attributes | |
StorageContainer | m_storages |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::mongo::ExternalCacheStorage | |
ExternalCacheStorage (const std::string &name, size_t id) | |
Creates an external cache storage around name and id. More... | |
Aggregate for saving cache data to external storage.
using catapult::mongo::AggregateExternalCacheStorage::StorageContainer = std::vector<std::unique_ptr<ExternalCacheStorage> > |
Container of sub cache storages.
|
inlineexplicit |
Creates an aggregate around storages.
|
inlineoverridevirtual |
Saves cache changes to external storage.
Implements catapult::mongo::ExternalCacheStorage.
|
private |