14#include "arcane/utils/TraceAccessor.h"
15#include "arcane/utils/Array.h"
16#include "arcane/utils/FatalErrorException.h"
18#include "arcane/std/internal/IHashDatabase.h"
19#include "arcane/std/internal/IRedisContext.h"
30class RedisHashDatabase
38 , m_context(createRedisContext(tm))
41 m_context->open(machine_name, port);
52 m_context->sendBuffer(args.hashValue(), args.values());
53 xresult.setHashValueAsString(args.hashValue());
59 m_context->getBuffer(args.hashValueAsString(), bytes);
60 if (bytes.size() != args.values().
size())
61 ARCANE_FATAL(
"Bad size expected={0} actual={1}", args.values().
size(), bytes.size());
62 args.values().
copy(bytes);
#define ARCANE_CHECK_POINTER(ptr)
Macro returning the pointer ptr if it is not null or throwing an exception if it is null.
#define ARCANE_FATAL(...)
Macro throwing a FatalErrorException.
Reference to an instance.
__host__ __device__ void copy(const U ©_array)
Copies the array copy_array into the instance.
constexpr __host__ __device__ SizeType size() const noexcept
Returns the size of the array.
Unicode character string.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
auto makeRef(InstanceType *t) -> Ref< InstanceType >
Creates a reference on a pointer.
std::int32_t Int32
Signed integer type of 32 bits.