2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
18 /* This seems to be required for older compilers @note
19 * http://stackoverflow.com/questions/8132399/how-to-printf-uint64-t */
20 #ifndef __STDC_FORMAT_MACROS
21 # define __STDC_FORMAT_MACROS
25 # if __cplusplus >= 201103L
28 # include <inttypes.h>
33 # include <inttypes.h>
39 #include <sys/types.h>
41 #include "libmemcached-1.0/visibility.h"
42 #include "libmemcached-1.0/configure.h"
43 #include "libmemcached-1.0/platform.h"
45 #include "libmemcached-1.0/limits.h"
46 #include "libmemcached-1.0/defaults.h"
48 #include "libmemcached-1.0/types/behavior.h"
49 #include "libmemcached-1.0/types/callback.h"
50 #include "libmemcached-1.0/types/connection.h"
51 #include "libmemcached-1.0/types/hash.h"
52 #include "libmemcached-1.0/types/return.h"
53 #include "libmemcached-1.0/types/server_distribution.h"
55 #include "libmemcached-1.0/return.h"
57 #include "libmemcached-1.0/types.h"
58 #include "libmemcached-1.0/callbacks.h"
59 #include "libmemcached-1.0/alloc.h"
60 #include "libmemcached-1.0/triggers.h"
62 #include "libhashkit-1.0/hashkit.h"
64 #include "libmemcached-1.0/struct/callback.h"
65 #include "libmemcached-1.0/struct/string.h"
66 #include "libmemcached-1.0/struct/result.h"
67 #include "libmemcached-1.0/struct/allocator.h"
68 #include "libmemcached-1.0/struct/sasl.h"
69 #include "libmemcached-1.0/struct/memcached.h"
70 #include "libmemcached-1.0/struct/server.h"
71 #include "libmemcached-1.0/struct/stat.h"
73 #include "libmemcached-1.0/basic_string.h"
74 #include "libmemcached-1.0/error.h"
75 #include "libmemcached-1.0/stats.h"
77 // Everything above this line must be in the order specified.
78 #include "libmemcached-1.0/allocators.h"
79 #include "libmemcached-1.0/analyze.h"
80 #include "libmemcached-1.0/auto.h"
81 #include "libmemcached-1.0/behavior.h"
82 #include "libmemcached-1.0/callback.h"
83 #include "libmemcached-1.0/delete.h"
84 #include "libmemcached-1.0/dump.h"
85 #include "libmemcached-1.0/encoding_key.h"
86 #include "libmemcached-1.0/exist.h"
87 #include "libmemcached-1.0/fetch.h"
88 #include "libmemcached-1.0/flush.h"
89 #include "libmemcached-1.0/flush_buffers.h"
90 #include "libmemcached-1.0/get.h"
91 #include "libmemcached-1.0/hash.h"
92 #include "libmemcached-1.0/options.h"
93 #include "libmemcached-1.0/parse.h"
94 #include "libmemcached-1.0/quit.h"
95 #include "libmemcached-1.0/result.h"
96 #include "libmemcached-1.0/server.h"
97 #include "libmemcached-1.0/server_list.h"
98 #include "libmemcached-1.0/storage.h"
99 #include "libmemcached-1.0/strerror.h"
100 #include "libmemcached-1.0/touch.h"
101 #include "libmemcached-1.0/verbosity.h"
102 #include "libmemcached-1.0/version.h"
103 #include "libmemcached-1.0/sasl.h"
105 #include "libmemcached-1.0/deprecated_types.h"
112 void memcached_servers_reset(memcached_st
*ptr
);
115 memcached_st
*memcached_create(memcached_st
*ptr
);
118 memcached_st
*memcached(const char *string
, size_t string_length
);
121 void memcached_free(memcached_st
*ptr
);
124 memcached_return_t
memcached_reset(memcached_st
*ptr
);
127 void memcached_reset_last_disconnected_server(memcached_st
*ptr
);
130 memcached_st
*memcached_clone(memcached_st
*clone
, const memcached_st
*ptr
);
133 void *memcached_get_user_data(const memcached_st
*ptr
);
136 void *memcached_set_user_data(memcached_st
*ptr
, void *data
);
139 memcached_return_t
memcached_push(memcached_st
*destination
, const memcached_st
*source
);
142 const memcached_instance_st
*memcached_server_instance_by_position(const memcached_st
*ptr
,
143 uint32_t server_key
);
146 uint32_t memcached_server_count(const memcached_st
*);
149 uint64_t memcached_query_id(const memcached_st
*);