CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor > Struct Template Reference

Defines types for mongo cache storage given a cache descriptor. More...

Public Types

using CacheType = typename TDescriptor::CacheType
 Cache type. More...
 
using CacheDeltaType = typename TDescriptor::CacheDeltaType
 Cache delta type. More...
 
using KeyType = typename TDescriptor::KeyType
 Key type. More...
 
using ModelType = typename TDescriptor::ValueType
 Model type. More...
 

Static Public Attributes

static constexpr auto GetId = TDescriptor::GetKeyFromValue
 Gets the key corresponding to a value. More...
 

Detailed Description

template<typename TDescriptor>
struct catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor >

Defines types for mongo cache storage given a cache descriptor.

Member Typedef Documentation

◆ CacheDeltaType

template<typename TDescriptor >
using catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor >::CacheDeltaType = typename TDescriptor::CacheDeltaType

Cache delta type.

◆ CacheType

template<typename TDescriptor >
using catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor >::CacheType = typename TDescriptor::CacheType

Cache type.

◆ KeyType

template<typename TDescriptor >
using catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor >::KeyType = typename TDescriptor::KeyType

Key type.

◆ ModelType

template<typename TDescriptor >
using catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor >::ModelType = typename TDescriptor::ValueType

Model type.

Member Data Documentation

◆ GetId

template<typename TDescriptor >
constexpr auto catapult::mongo::storages::BasicMongoCacheStorageTraits< TDescriptor >::GetId = TDescriptor::GetKeyFromValue
staticconstexpr

Gets the key corresponding to a value.


The documentation for this struct was generated from the following file: