Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
IRedisContext.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IRedisContext.h (C) 2000-2023 */
9/* */
10/* Interface d'un contexte pour Redis. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_INTERNAL_IREDISCONTEXT_H
13#define ARCANE_STD_INTERNAL_IREDISCONTEXT_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Ref.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class ARCANE_STD_EXPORT IRedisContext
29{
30 public:
31
32 virtual ~IRedisContext() = default;
33
34 public:
35
36 virtual void open(const String& machine, Int32 port) = 0;
37 virtual void sendBuffer(const String& key, Span<const std::byte> bytes) = 0;
38 virtual void getBuffer(const String& key, Array<std::byte>& bytes) = 0;
39};
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
43
44extern "C++" ARCANE_STD_EXPORT Ref<IRedisContext>
45createRedisContext(ITraceMng* tm);
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
49
50} // namespace Arcane
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
55#endif
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Interface du gestionnaire de traces.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-