Merge from trunk.
[m6w6/libmemcached] / libmemcached / memcached_get.h
1 /*
2 * Summary: Get functions for libmemcached
3 *
4 * Copy: See Copyright for the status of this software.
5 *
6 * Author: Brian Aker
7 */
8
9 #ifndef LIBMEMCACHED_MEMCACHED_GET_H
10 #define LIBMEMCACHED_MEMCACHED_GET_H
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 /* Public defines */
17 LIBMEMCACHED_API
18 char *memcached_get(memcached_st *ptr,
19 const char *key, size_t key_length,
20 size_t *value_length,
21 uint32_t *flags,
22 memcached_return *error);
23
24 LIBMEMCACHED_API
25 memcached_return memcached_mget(memcached_st *ptr,
26 const char * const *keys,
27 const size_t *key_length,
28 size_t number_of_keys);
29
30 LIBMEMCACHED_API
31 char *memcached_get_by_key(memcached_st *ptr,
32 const char *master_key, size_t master_key_length,
33 const char *key, size_t key_length,
34 size_t *value_length,
35 uint32_t *flags,
36 memcached_return *error);
37
38 LIBMEMCACHED_API
39 memcached_return memcached_mget_by_key(memcached_st *ptr,
40 const char *master_key, size_t
41 master_key_length,
42 const char * const *keys,
43 const size_t *key_length,
44 size_t number_of_keys);
45
46 LIBMEMCACHED_API
47 char *memcached_fetch(memcached_st *ptr,
48 char *key, size_t *key_length,
49 size_t *value_length, uint32_t *flags,
50 memcached_return *error);
51
52 LIBMEMCACHED_API
53 memcached_result_st *memcached_fetch_result(memcached_st *ptr,
54 memcached_result_st *result,
55 memcached_return *error);
56
57 LIBMEMCACHED_API
58 memcached_return memcached_mget_execute(memcached_st *ptr,
59 const char * const *keys,
60 const size_t *key_length,
61 size_t number_of_keys,
62 memcached_execute_function *callback,
63 void *context,
64 unsigned int number_of_callbacks);
65
66 LIBMEMCACHED_API
67 memcached_return memcached_mget_execute_by_key(memcached_st *ptr,
68 const char *master_key,
69 size_t master_key_length,
70 const char * const *keys,
71 const size_t *key_length,
72 size_t number_of_keys,
73 memcached_execute_function *callback,
74 void *context,
75 unsigned int number_of_callbacks);
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* LIBMEMCACHED_MEMCACHED_GET_H */