CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::ExternalCacheStorageT< TCache > Class Template Referenceabstract

Typed interface for saving cache data to external storage. More...

Inheritance diagram for catapult::mongo::ExternalCacheStorageT< TCache >:
Collaboration diagram for catapult::mongo::ExternalCacheStorageT< TCache >:

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...
 

Detailed Description

template<typename TCache>
class catapult::mongo::ExternalCacheStorageT< TCache >

Typed interface for saving cache data to external storage.

Member Typedef Documentation

◆ CacheChangesType

template<typename TCache>
using catapult::mongo::ExternalCacheStorageT< TCache >::CacheChangesType = cache::SingleCacheChangesT<typename TCache::CacheDeltaType, typename TCache::CacheValueType>
private

Constructor & Destructor Documentation

◆ ExternalCacheStorageT()

template<typename TCache>
catapult::mongo::ExternalCacheStorageT< TCache >::ExternalCacheStorageT ( )
inline

Creates an external cache storage.

Member Function Documentation

◆ saveDelta() [1/2]

template<typename TCache>
void catapult::mongo::ExternalCacheStorageT< TCache >::saveDelta ( const cache::CacheChanges changes)
inlinefinaloverridevirtual

Saves cache changes to external storage.

Implements catapult::mongo::ExternalCacheStorage.

Here is the caller graph for this function:

◆ saveDelta() [2/2]

template<typename TCache>
virtual void catapult::mongo::ExternalCacheStorageT< TCache >::saveDelta ( const CacheChangesType changes)
privatepure virtual

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