CatapultServer
v0.5.0.1 (Elephant)
|
Abstract class for saving cache data to external storage. More...
Public Member Functions | |
virtual | ~ExternalCacheStorage ()=default |
const std::string & | name () const |
Gets the cache name. More... | |
size_t | id () const |
Gets the cache id. More... | |
virtual void | saveDelta (const cache::CacheChanges &changes)=0 |
Saves cache changes to external storage. More... | |
Protected Member Functions | |
ExternalCacheStorage (const std::string &name, size_t id) | |
Creates an external cache storage around name and id. More... | |
Private Attributes | |
std::string | m_name |
size_t | m_id |
Abstract class for saving cache data to external storage.
|
inlineprotected |
Creates an external cache storage around name and id.
|
virtualdefault |
|
inline |
Gets the cache id.
|
inline |
Gets the cache name.
|
pure virtual |
Saves cache changes to external storage.
Implemented in catapult::mongo::AggregateExternalCacheStorage, catapult::mongo::ExternalCacheStorageT< TCache >, and catapult::mongo::ExternalCacheStorageT< TCacheTraits::CacheType >.
|
private |
|
private |