Work inspired by matt knox
[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 __MEMCACHED_GET_H__
10 #define __MEMCACHED_GET_H__
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 /* Public defines */
17 char *memcached_get(memcached_st *ptr,
18 const char *key, size_t key_length,
19 size_t *value_length,
20 uint32_t *flags,
21 memcached_return *error);
22
23 memcached_return memcached_mget(memcached_st *ptr,
24 char **keys, size_t *key_length,
25 unsigned int number_of_keys);
26
27 char *memcached_get_by_key(memcached_st *ptr,
28 const char *master_key, size_t master_key_length,
29 const char *key, size_t key_length,
30 size_t *value_length,
31 uint32_t *flags,
32 memcached_return *error);
33
34 memcached_return memcached_mget_by_key(memcached_st *ptr,
35 const char *master_key, size_t
36 master_key_length,
37 char **keys,
38 size_t *key_length,
39 unsigned int number_of_keys);
40
41 char *memcached_fetch(memcached_st *ptr,
42 char *key, size_t *key_length,
43 size_t *value_length, uint32_t *flags,
44 memcached_return *error);
45
46 memcached_result_st *memcached_fetch_result(memcached_st *ptr,
47 memcached_result_st *result,
48 memcached_return *error);
49
50
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif /* __MEMCACHED_GET_H__ */