-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMRedisTypes.hpp
More file actions
36 lines (26 loc) · 1.01 KB
/
Copy pathMRedisTypes.hpp
File metadata and controls
36 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2018 Stephan Menzel. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "MRedisConfig.hpp"
#include "tools/Error.hpp"
#include <chrono>
namespace moose {
namespace mredis {
using Clock = std::chrono::steady_clock;
using Duration = std::chrono::steady_clock::duration;
using TimePoint = std::chrono::time_point<Clock>;
//! Sadly, like boost chrono, the std variant also does not have an empty uninitialized default.
constexpr Duration c_invalid_duration = std::chrono::steady_clock::duration::max();
//! I didn't even bother looking if other commands have the same additional parameters
//! Right now, this is only used for SET
MOOSE_TOOLS_API enum class SetCondition {
NONE = 0, //!< always set
NX, //!< set only if it doesn't exist already
XX //!< set only if it does already exist
};
#if defined(BOOST_MSVC)
void MredisTypesGetRidOfLNK4221();
#endif
}
}