CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::CacheChangesStorage Class Referenceabstract

Interface for loading and saving cache changes. More...

Inheritance diagram for catapult::cache::CacheChangesStorage:

Public Member Functions

virtual ~CacheChangesStorage ()=default
 
virtual void saveAll (const CacheChanges &changes, io::OutputStream &output) const =0
 Saves cache changes to output. More...
 
virtual std::unique_ptr< const MemoryCacheChangesloadAll (io::InputStream &input) const =0
 Loads cache changes from input. More...
 
virtual void apply (const CacheChanges &changes) const =0
 Applies cache changes to the underlying cache. More...
 

Detailed Description

Interface for loading and saving cache changes.

Constructor & Destructor Documentation

◆ ~CacheChangesStorage()

virtual catapult::cache::CacheChangesStorage::~CacheChangesStorage ( )
virtualdefault

Member Function Documentation

◆ apply()

virtual void catapult::cache::CacheChangesStorage::apply ( const CacheChanges changes) const
pure virtual

Applies cache changes to the underlying cache.

Implemented in catapult::cache::CacheChangesStorageAdapter< TCache, TStorageTraits >.

◆ loadAll()

virtual std::unique_ptr<const MemoryCacheChanges> catapult::cache::CacheChangesStorage::loadAll ( io::InputStream input) const
pure virtual

Loads cache changes from input.

Implemented in catapult::cache::CacheChangesStorageAdapter< TCache, TStorageTraits >.

◆ saveAll()

virtual void catapult::cache::CacheChangesStorage::saveAll ( const CacheChanges changes,
io::OutputStream output 
) const
pure virtual

Saves cache changes to output.

Implemented in catapult::cache::CacheChangesStorageAdapter< TCache, TStorageTraits >.


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