Go to the source code of this file.
◆ DECLARE_MONGO_CACHE_STORAGE
#define DECLARE_MONGO_CACHE_STORAGE |
( |
|
NAME | ) |
|
Value:std::unique_ptr<mongo::ExternalCacheStorage> CreateMongo##NAME##CacheStorage( \
mongo::MongoStorageContext& storageContext, \
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.