CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace cache {
27 template<
typename TCache>
33 ,
m_name(std::string(TCache::
Name) +
"_summary")
37 const std::string&
name()
const override {
58 template<
typename TCache,
typename TStorageTraits,
typename TSummaryCacheStorage>
64 using BaseType::BaseType;
69 return pStorage ? std::move(pStorage) : std::make_unique<TSummaryCacheStorage>(this->
cache());
const std::string & name() const override
Gets the cache name.
Definition: SummaryAwareSubCachePluginAdapter.h:37
std::unique_ptr< CacheStorage > createStorage() override
Returns a cache storage based on this cache.
Definition: SubCachePluginAdapter.h:79
CacheStorage implementation for saving and loading summary cache data.
Definition: SummaryAwareSubCachePluginAdapter.h:28
SummaryCacheStorage(TCache &cache)
Creates a storage around cache.
Definition: SummaryAwareSubCachePluginAdapter.h:31
TCache & cache()
Gets a typed reference to the underlying cache.
Definition: SubCachePluginAdapter.h:91
const TCache & cache() const
Gets a typed const reference to the underlying cache.
Definition: SummaryAwareSubCachePluginAdapter.h:43
Interface for loading and saving cache data.
Definition: CacheStorage.h:35
std::unique_ptr< CacheStorage > createStorage() override
Returns a cache storage based on this cache.
Definition: SummaryAwareSubCachePluginAdapter.h:67
static constexpr auto Name
Definition: PtSynchronizer.cpp:31
TCache & cache()
Gets a typed reference to the underlying cache.
Definition: SummaryAwareSubCachePluginAdapter.h:48
TCache & m_cache
Definition: SummaryAwareSubCachePluginAdapter.h:53
Definition: AddressExtractionExtension.cpp:28
std::string m_name
Definition: SummaryAwareSubCachePluginAdapter.h:54
Specialized sub cache plugin adapter that provides proper handling of summary cache state.
Definition: SummaryAwareSubCachePluginAdapter.h:59
A SubCachePlugin implementation that wraps a SynchronizedCache.
Definition: SubCachePluginAdapter.h:32