CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 class CatapultCacheDelta;
28 class CatapultCacheView;
32 namespace catapult {
namespace cache {
41 virtual const std::string&
name()
const = 0;
Delta on top of a catapult cache.
Definition: CatapultCacheDelta.h:31
virtual void saveAll(const CatapultCacheView &cacheView, io::OutputStream &output) const =0
Saves cache data from cacheView to output.
Interface for loading and saving cache data.
Definition: CacheStorage.h:35
virtual void saveSummary(const CatapultCacheDelta &cacheDelta, io::OutputStream &output) const =0
Saves cache (summary) data from cacheDelta to output.
Locked view on top of the catapult cache.
Definition: CatapultCacheView.h:36
virtual void loadAll(io::InputStream &input, size_t batchSize)=0
Loads cache data from input in batches of batchSize.
Definition: AddressExtractionExtension.cpp:28
virtual const std::string & name() const =0
Gets the cache name.
Writer interface.
Definition: Stream.h:41
virtual ~CacheStorage()=default