CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace cache {
29 AccountStateCacheDescriptor,
46 std::unique_ptr<model::AddressSet>&& pHighValueAddresses)
61 auto highValueAddresses = delta.highValueAddresses().Current;
Decorator that synchronizes access to a cache and allows custom cache initialization.
Definition: SynchronizedCache.h:277
std::unique_ptr< model::AddressSet > m_pHighValueAddresses
Definition: AccountStateCache.h:68
void commit(const CacheDeltaType &delta)
Definition: AccountStateCache.h:59
#define DEFINE_CACHE_CONSTANTS(NAME)
Defines cache constants for a cache with NAME.
Definition: CacheConstants.h:42
void commit(const CacheDeltaType &delta)
Commits all pending changes from delta to the underlying storage.
Definition: BasicCache.h:64
AccountStateCache(const CacheConfiguration &config, const AccountStateCacheTypes::Options &options)
Creates a cache around config and options.
Definition: AccountStateCache.h:78
uint64_t m_importanceGrouping
Definition: AccountStateCache.h:97
std::unordered_set< Address, utils::ArrayHasher< Address > > AddressSet
Unordered set of addresses.
Definition: ContainerTypes.h:41
AccountState cache types.
Definition: AccountStateCacheTypes.h:74
Custom sub view options.
Definition: AccountStateCacheTypes.h:79
uint64_t importanceGrouping() const
Gets the network importance grouping.
Definition: AccountStateCache.h:91
model::NetworkIdentifier m_networkIdentifier
Definition: AccountStateCache.h:96
model::NetworkIdentifier networkIdentifier() const
Gets the network identifier.
Definition: AccountStateCache.h:86
AccountStateBaseSets BaseSets
Definition: AccountStateCacheTypes.h:191
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Synchronized cache composed of stateful account information.
Definition: AccountStateCache.h:72
Definition: BasicCache.h:32
typename TCacheDescriptor::CacheDeltaType CacheDeltaType
Definition: BasicCache.h:36
BasicCache< AccountStateCacheDescriptor, AccountStateCacheTypes::BaseSets, AccountStateCacheTypes::Options, const model::AddressSet & > AccountStateBasicCache
Definition: AccountStateCache.h:32
Cache configuration.
Definition: CacheConfiguration.h:37
void init(model::AddressSet &&highValueAddresses)
Initializes the cache with highValueAddresses.
Definition: AccountStateCache.h:53
Definition: AddressExtractionExtension.cpp:28
BasicAccountStateCache(const CacheConfiguration &config, const AccountStateCacheTypes::Options &options)
Creates a cache around config and options.
Definition: AccountStateCache.h:38
BasicAccountStateCache(const CacheConfiguration &config, const AccountStateCacheTypes::Options &options, std::unique_ptr< model::AddressSet > &&pHighValueAddresses)
Definition: AccountStateCache.h:43
Cache composed of stateful account information.
Definition: AccountStateCache.h:35