|
CatapultServer
v0.5.0.1 (Elephant)
|
A mongo cache storage that persists historical cache data using delete and insert. More...


Public Member Functions | |
| MongoHistoricalCacheStorage (MongoStorageContext &storageContext, model::NetworkIdentifier networkIdentifier) | |
| Creates a cache storage around storageContext and networkIdentifier. More... | |
Public Member Functions inherited from catapult::mongo::ExternalCacheStorageT< TCacheTraits::CacheType > | |
| ExternalCacheStorageT () | |
| Creates an external cache storage. More... | |
| void | saveDelta (const cache::CacheChanges &changes) final 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 Types | |
| using | CacheChangesType = cache::SingleCacheChangesT< typename TCacheTraits::CacheDeltaType, typename TCacheTraits::CacheType::CacheValueType > |
| using | ElementContainerType = typename TCacheTraits::ElementContainerType |
| using | IdContainerType = typename TCacheTraits::IdContainerType |
Private Member Functions | |
| void | saveDelta (const CacheChangesType &changes) override |
| Saves cache changes to external storage. More... | |
| void | removeAll (const IdContainerType &ids) |
| void | insertAll (const ElementContainerType &elements) |
Static Private Member Functions | |
| static IdContainerType | GetIds (const ElementContainerType &elements) |
| static bsoncxx::document::value | CreateDeleteFilter (const IdContainerType &ids) |
Private Attributes | |
| MongoDatabase | m_database |
| MongoErrorPolicy | m_errorPolicy |
| MongoBulkWriter & | m_bulkWriter |
| model::NetworkIdentifier | m_networkIdentifier |
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... | |
A mongo cache storage that persists historical cache data using delete and insert.
|
private |
|
private |
|
private |
|
inline |
Creates a cache storage around storageContext and networkIdentifier.
|
inlinestaticprivate |

|
inlinestaticprivate |

|
inlineprivate |


|
inlineprivate |


|
inlineoverrideprivatevirtual |
Saves cache changes to external storage.
Implements catapult::mongo::ExternalCacheStorageT< TCacheTraits::CacheType >.

|
private |
|
private |
|
private |
|
private |