CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::ExternalCacheStorage Class Referenceabstract

Abstract class for saving cache data to external storage. More...

Inheritance diagram for catapult::mongo::ExternalCacheStorage:

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
 

Detailed Description

Abstract class for saving cache data to external storage.

Constructor & Destructor Documentation

◆ ExternalCacheStorage()

catapult::mongo::ExternalCacheStorage::ExternalCacheStorage ( const std::string &  name,
size_t  id 
)
inlineprotected

Creates an external cache storage around name and id.

◆ ~ExternalCacheStorage()

virtual catapult::mongo::ExternalCacheStorage::~ExternalCacheStorage ( )
virtualdefault

Member Function Documentation

◆ id()

size_t catapult::mongo::ExternalCacheStorage::id ( ) const
inline

Gets the cache id.

◆ name()

const std::string& catapult::mongo::ExternalCacheStorage::name ( ) const
inline

Gets the cache name.

◆ saveDelta()

virtual void catapult::mongo::ExternalCacheStorage::saveDelta ( const cache::CacheChanges changes)
pure virtual

Member Data Documentation

◆ m_id

size_t catapult::mongo::ExternalCacheStorage::m_id
private

◆ m_name

std::string catapult::mongo::ExternalCacheStorage::m_name
private

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