CatapultServer
v0.5.0.1 (Elephant)
|
Typed interface for saving cache data to external storage. More...
Public Member Functions | |
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 TCache::CacheDeltaType, typename TCache::CacheValueType > |
Private Member Functions | |
virtual void | saveDelta (const CacheChangesType &changes)=0 |
Saves cache changes to external storage. More... | |
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... | |
Typed interface for saving cache data to external storage.
|
private |
|
inline |
Creates an external cache storage.
|
inlinefinaloverridevirtual |
Saves cache changes to external storage.
Implements catapult::mongo::ExternalCacheStorage.
|
privatepure virtual |
Saves cache changes to external storage.
Implemented in catapult::mongo::storages::MongoFlatCacheStorage< TCacheTraits >, and catapult::mongo::storages::MongoHistoricalCacheStorage< TCacheTraits >.