CatapultServer
v0.5.0.1 (Elephant)
|
A SubCachePlugin implementation that wraps a SynchronizedCache. More...
Classes | |
class | DetachedSubCacheViewAdapter |
class | SubCacheViewAdapter |
Public Member Functions | |
SubCachePluginAdapter (std::unique_ptr< TCache > &&pCache) | |
Creates an adapter around pCache. More... | |
const std::string & | name () const override |
Gets the cache name. More... | |
size_t | id () const override |
Gets the cache id. More... | |
std::unique_ptr< const SubCacheView > | createView () const override |
Returns a locked cache view based on this cache. More... | |
std::unique_ptr< SubCacheView > | createDelta () override |
std::unique_ptr< DetachedSubCacheView > | createDetachedDelta () const override |
void | commit () override |
Commits all pending changes to the underlying storage. More... | |
const void * | get () const override |
Returns a const pointer to the underlying cache. More... | |
std::unique_ptr< CacheStorage > | createStorage () override |
Returns a cache storage based on this cache. More... | |
std::unique_ptr< CacheChangesStorage > | createChangesStorage () const override |
Returns a cache changes storage based on this cache. More... | |
TCache & | cache () |
Gets a typed reference to the underlying cache. More... | |
Public Member Functions inherited from catapult::cache::SubCachePlugin | |
virtual | ~SubCachePlugin ()=default |
Private Member Functions | |
auto | makeSubCacheViewIdentifier (SubCacheViewType viewType) const |
Static Private Member Functions | |
static bool | IsCacheStorageSupported (const TCache &cache) |
Private Attributes | |
std::unique_ptr< TCache > | m_pCache |
std::string | m_name |
A SubCachePlugin implementation that wraps a SynchronizedCache.
|
inlineexplicit |
Creates an adapter around pCache.
|
inline |
Gets a typed reference to the underlying cache.
|
inlineoverridevirtual |
Commits all pending changes to the underlying storage.
Implements catapult::cache::SubCachePlugin.
|
inlineoverridevirtual |
Returns a cache changes storage based on this cache.
Implements catapult::cache::SubCachePlugin.
|
inlineoverridevirtual |
Returns a locked cache delta based on this cache.
Implements catapult::cache::SubCachePlugin.
|
inlineoverridevirtual |
Returns a lockable cache delta based on this cache but without the ability to commit any changes to the original cache.
Implements catapult::cache::SubCachePlugin.
|
inlineoverridevirtual |
Returns a cache storage based on this cache.
Implements catapult::cache::SubCachePlugin.
Reimplemented in catapult::cache::SummaryAwareSubCachePluginAdapter< TCache, TStorageTraits, TSummaryCacheStorage >.
|
inlineoverridevirtual |
Returns a locked cache view based on this cache.
Implements catapult::cache::SubCachePlugin.
|
inlineoverridevirtual |
Returns a const pointer to the underlying cache.
Implements catapult::cache::SubCachePlugin.
|
inlineoverridevirtual |
Gets the cache id.
Implements catapult::cache::SubCachePlugin.
|
inlinestaticprivate |
|
inlineprivate |
|
inlineoverridevirtual |
Gets the cache name.
Implements catapult::cache::SubCachePlugin.
|
private |
|
private |