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

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

Inheritance diagram for catapult::cache::CacheStorage:

Public Member Functions

virtual ~CacheStorage ()=default
 
virtual const std::string & name () const =0
 Gets the cache name. More...
 
virtual void saveAll (const CatapultCacheView &cacheView, io::OutputStream &output) const =0
 Saves cache data from cacheView to output. More...
 
virtual void saveSummary (const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const =0
 Saves cache (summary) data from cacheDelta to output. More...
 
virtual void loadAll (io::InputStream &input, size_t batchSize)=0
 Loads cache data from input in batches of batchSize. More...
 

Detailed Description

Interface for loading and saving cache data.

Constructor & Destructor Documentation

◆ ~CacheStorage()

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

Member Function Documentation

◆ loadAll()

virtual void catapult::cache::CacheStorage::loadAll ( io::InputStream input,
size_t  batchSize 
)
pure virtual

◆ name()

◆ saveAll()

◆ saveSummary()


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