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


Public Member Functions | |
| MongoFlatCacheStorage (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::ModelType > |
| using | KeyType = typename TCacheTraits::KeyType |
| using | ModelType = typename TCacheTraits::ModelType |
| using | ElementContainerType = std::unordered_set< const ModelType * > |
Private Member Functions | |
| void | saveDelta (const CacheChangesType &changes) override |
| Saves cache changes to external storage. More... | |
| void | removeAll (const ElementContainerType &elements) |
| void | upsertAll (const ElementContainerType &elements) |
Static Private Member Functions | |
| static bsoncxx::document::value | CreateFilter (const ModelType *pModel) |
| static bsoncxx::document::value | CreateFilterByKey (const KeyType &key) |
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 flat cache data using delete and upsert.
|
private |
|
private |
|
private |
|
private |
|
inline |
Creates a cache storage around storageContext and networkIdentifier.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |

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

|
inlineprivate |

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