CatapultServer
v0.5.0.1 (Elephant)
MemoryCacheOptions.h
Go to the documentation of this file.
1
21
#pragma once
22
#include <stdint.h>
23
24
namespace
catapult
{
namespace
cache {
25
27
class
MemoryCacheOptions
{
28
public
:
30
constexpr
MemoryCacheOptions
() :
MemoryCacheOptions
(0, 0)
31
{}
32
34
constexpr
MemoryCacheOptions
(uint64_t maxResponseSize, uint64_t maxCacheSize)
35
:
MaxResponseSize
(maxResponseSize)
36
,
MaxCacheSize
(maxCacheSize)
37
{}
38
39
public
:
41
uint64_t
MaxResponseSize
;
42
44
uint64_t
MaxCacheSize
;
45
};
46
}}
catapult::cache::MemoryCacheOptions::MaxCacheSize
uint64_t MaxCacheSize
Maximum size of the cache.
Definition:
MemoryCacheOptions.h:44
catapult::cache::MemoryCacheOptions::MemoryCacheOptions
constexpr MemoryCacheOptions()
Creates default options.
Definition:
MemoryCacheOptions.h:30
catapult::cache::MemoryCacheOptions::MaxResponseSize
uint64_t MaxResponseSize
Maximum response size.
Definition:
MemoryCacheOptions.h:41
catapult::cache::MemoryCacheOptions::MemoryCacheOptions
constexpr MemoryCacheOptions(uint64_t maxResponseSize, uint64_t maxCacheSize)
Creates options with custom maxResponseSize and maxCacheSize.
Definition:
MemoryCacheOptions.h:34
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::cache::MemoryCacheOptions
Options for customizing the behavior of a memory based cache.
Definition:
MemoryCacheOptions.h:27
catapult-server
src
catapult
cache_tx
MemoryCacheOptions.h
Generated by
1.8.16