Evo C++ Library v0.5.1
memcached_common.h
Go to the documentation of this file.
1 // Evo C++ Library
2 /* Copyright 2019 Justin Crowell
3 Distributed under the BSD 2-Clause License -- see included file LICENSE.txt for details.
4 */
6 
7 #pragma once
8 #ifndef INCL_evo_api_memcached_common_h
9 #define INCL_evo_api_memcached_common_h
10 
11 #include "../enum.h"
12 
13 namespace evo {
14 namespace async {
19 
21 
23 struct Memcached {
25  enum ErrorResult {
26  erUNKNOWN = 0,
31  };
32 
34  enum StoreResult {
35  srUNKNOWN = 0,
41  };
42 
45  "CLIENT_ERROR",
46  "ERROR",
47  "SERVER_ERROR"
48  );
49 
52  "EXISTS",
53  "NOT_FOUND",
54  "NOT_STORED",
55  "STORED"
56  );
57 };
58 
60 
61 }
62 }
63 #endif
General types used when implementing MemcachedClient or server callbacks.
Definition: memcached_common.h:23
Not stored due to unmet condtion for append, prepend, add, or replace command.
Definition: memcached_common.h:38
Enum guard value (always last)
Definition: memcached_common.h:40
Definition: memcached_common.h:28
ErrorResult
Memcached protocol error result.
Definition: memcached_common.h:25
#define EVO_ENUM_MAP_PREFIXED(ENUM, PREFIX,...)
Helper for creating enum string/value mappers with prefixed enum values.
Definition: enum.h:219
Definition: memcached_common.h:26
Item not found, can't compare-and-swap (CAS command only)
Definition: memcached_common.h:37
Item modified, interrupting compare-and-swap command (CAS command only)
Definition: memcached_common.h:36
Evo C++ Library namespace.
Definition: alg.h:11
StoreResult
Memcached store command result.
Definition: memcached_common.h:34
Unknown/invalid result (always first)
Definition: memcached_common.h:35
Successfully stored.
Definition: memcached_common.h:39
Definition: memcached_common.h:29
Definition: memcached_common.h:30
Definition: memcached_common.h:27