2 * Copyright (C) 2006-2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
8 * Summary: Get functions for libmemcached
12 #ifndef __LIBMEMCACHED_GET_H__
13 #define __LIBMEMCACHED_GET_H__
21 char *memcached_get(memcached_st
*ptr
,
22 const char *key
, size_t key_length
,
25 memcached_return_t
*error
);
28 memcached_return_t
memcached_mget(memcached_st
*ptr
,
29 const char * const *keys
,
30 const size_t *key_length
,
31 size_t number_of_keys
);
34 char *memcached_get_by_key(memcached_st
*ptr
,
35 const char *master_key
, size_t master_key_length
,
36 const char *key
, size_t key_length
,
39 memcached_return_t
*error
);
42 memcached_return_t
memcached_mget_by_key(memcached_st
*ptr
,
43 const char *master_key
,
44 size_t master_key_length
,
45 const char * const *keys
,
46 const size_t *key_length
,
47 const size_t number_of_keys
);
50 char *memcached_fetch(memcached_st
*ptr
,
55 memcached_return_t
*error
);
58 memcached_result_st
*memcached_fetch_result(memcached_st
*ptr
,
59 memcached_result_st
*result
,
60 memcached_return_t
*error
);
63 memcached_return_t
memcached_mget_execute(memcached_st
*ptr
,
64 const char * const *keys
,
65 const size_t *key_length
,
66 const size_t number_of_keys
,
67 memcached_execute_fn
*callback
,
69 const uint32_t number_of_callbacks
);
72 memcached_return_t
memcached_mget_execute_by_key(memcached_st
*ptr
,
73 const char *master_key
,
74 size_t master_key_length
,
75 const char * const *keys
,
76 const size_t *key_length
,
77 size_t number_of_keys
,
78 memcached_execute_fn
*callback
,
80 const uint32_t number_of_callbacks
);
86 #endif /* __LIBMEMCACHED_GET_H__ */