CatapultServer  v0.5.0.1 (Elephant)
extensions/mongo/src/CacheStorageInclude.h File Reference
Include dependency graph for extensions/mongo/src/CacheStorageInclude.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::mongo
 

Macros

#define DECLARE_MONGO_CACHE_STORAGE(NAME)
 Declares a mongo cache storage with NAME. More...
 
#define DEFINE_MONGO_CACHE_STORAGE(NAME, STORAGE_TYPE, TRAITS_NAME)
 Defines a mongo cache storage with NAME and STORAGE_TYPE using TRAITS_NAME. More...
 
#define DEFINE_MONGO_FLAT_CACHE_STORAGE(NAME, TRAITS_NAME)   DEFINE_MONGO_CACHE_STORAGE(NAME, MongoFlatCacheStorage, TRAITS_NAME)
 Defines a mongo flat cache storage with NAME using TRAITS_NAME. More...
 
#define DEFINE_MONGO_HISTORICAL_CACHE_STORAGE(NAME, TRAITS_NAME)   DEFINE_MONGO_CACHE_STORAGE(NAME, MongoHistoricalCacheStorage, TRAITS_NAME)
 Defines a mongo historical cache storage with NAME using TRAITS_NAME. More...
 

Macro Definition Documentation

◆ DECLARE_MONGO_CACHE_STORAGE

#define DECLARE_MONGO_CACHE_STORAGE (   NAME)
Value:
std::unique_ptr<mongo::ExternalCacheStorage> CreateMongo##NAME##CacheStorage( \
mongo::MongoStorageContext& storageContext, \
model::NetworkIdentifier networkIdentifier) \

Declares a mongo cache storage with NAME.

◆ DEFINE_MONGO_CACHE_STORAGE

#define DEFINE_MONGO_CACHE_STORAGE (   NAME,
  STORAGE_TYPE,
  TRAITS_NAME 
)
Value:
return std::make_unique<storages::STORAGE_TYPE<TRAITS_NAME>>(storageContext, networkIdentifier); \
}

Defines a mongo cache storage with NAME and STORAGE_TYPE using TRAITS_NAME.

◆ DEFINE_MONGO_FLAT_CACHE_STORAGE

#define DEFINE_MONGO_FLAT_CACHE_STORAGE (   NAME,
  TRAITS_NAME 
)    DEFINE_MONGO_CACHE_STORAGE(NAME, MongoFlatCacheStorage, TRAITS_NAME)

Defines a mongo flat cache storage with NAME using TRAITS_NAME.

◆ DEFINE_MONGO_HISTORICAL_CACHE_STORAGE

#define DEFINE_MONGO_HISTORICAL_CACHE_STORAGE (   NAME,
  TRAITS_NAME 
)    DEFINE_MONGO_CACHE_STORAGE(NAME, MongoHistoricalCacheStorage, TRAITS_NAME)

Defines a mongo historical cache storage with NAME using TRAITS_NAME.

catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
DECLARE_MONGO_CACHE_STORAGE
#define DECLARE_MONGO_CACHE_STORAGE(NAME)
Declares a mongo cache storage with NAME.
Definition: extensions/mongo/src/CacheStorageInclude.h:29