CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
30 NamespaceCacheDescriptor,
47 std::unique_ptr<NamespaceSizes>&& pSizes)
54 void init(
size_t activeSize,
size_t deepSize) {
55 *
m_pSizes = { activeSize, deepSize };
62 *
m_pSizes = { delta.activeSize(), delta.deepSize() };
Decorator that synchronizes access to a cache and allows custom cache initialization.
Definition: SynchronizedCache.h:277
Cache composed of namespace information.
Definition: NamespaceCache.h:36
#define DEFINE_CACHE_CONSTANTS(NAME)
Defines cache constants for a cache with NAME.
Definition: CacheConstants.h:42
BasicNamespaceCache(const CacheConfiguration &config, const NamespaceCacheTypes::Options &options, std::unique_ptr< NamespaceSizes > &&pSizes)
Definition: NamespaceCache.h:44
Synchronized cache composed of namespace information.
Definition: NamespaceCache.h:71
void commit(const CacheDeltaType &delta)
Commits all pending changes from delta to the underlying storage.
Definition: BasicCache.h:64
std::unique_ptr< NamespaceSizes > m_pSizes
Definition: NamespaceCache.h:67
BasicCache< NamespaceCacheDescriptor, NamespaceCacheTypes::BaseSets, NamespaceCacheTypes::Options, const NamespaceSizes & > NamespaceBasicCache
Definition: NamespaceCache.h:33
void init(size_t activeSize, size_t deepSize)
Initializes the cache with activeSize and deepSize.
Definition: NamespaceCache.h:54
void commit(const CacheDeltaType &delta)
Definition: NamespaceCache.h:60
NamespaceCache(const CacheConfiguration &config, const NamespaceCacheTypes::Options &options)
Creates a cache around config and options.
Definition: NamespaceCache.h:77
Namespace cache types.
Definition: NamespaceCacheTypes.h:78
BasicNamespaceCache(const CacheConfiguration &config, const NamespaceCacheTypes::Options &options)
Creates a cache around config and options.
Definition: NamespaceCache.h:39
Definition: BasicCache.h:32
typename TCacheDescriptor::CacheDeltaType CacheDeltaType
Definition: BasicCache.h:36
Cache configuration.
Definition: CacheConfiguration.h:37
Definition: AddressExtractionExtension.cpp:28
NamespaceBaseSets BaseSets
Definition: NamespaceCacheTypes.h:129
Custom sub view options.
Definition: NamespaceCacheTypes.h:87
Extended namespace sizes.
Definition: NamespaceCacheMixins.h:30