CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::AggregateExternalCacheStorage Class Reference

Aggregate for saving cache data to external storage. More...

Inheritance diagram for catapult::mongo::AggregateExternalCacheStorage:
Collaboration diagram for catapult::mongo::AggregateExternalCacheStorage:

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...
 

Detailed Description

Aggregate for saving cache data to external storage.

Member Typedef Documentation

◆ StorageContainer

Container of sub cache storages.

Constructor & Destructor Documentation

◆ AggregateExternalCacheStorage()

catapult::mongo::AggregateExternalCacheStorage::AggregateExternalCacheStorage ( StorageContainer &&  storages)
inlineexplicit

Creates an aggregate around storages.

Member Function Documentation

◆ saveDelta()

void catapult::mongo::AggregateExternalCacheStorage::saveDelta ( const cache::CacheChanges changes)
inlineoverridevirtual

Saves cache changes to external storage.

Implements catapult::mongo::ExternalCacheStorage.

Member Data Documentation

◆ m_storages

StorageContainer catapult::mongo::AggregateExternalCacheStorage::m_storages
private

The documentation for this class was generated from the following file: