Bug fix in documentation Tim found.
[awesomized/libmemcached] / libmemcached / memcached_storage.h
1 /*
2 * Summary: Storage functions for libmemcached
3 *
4 * Copy: See Copyright for the status of this software.
5 *
6 * Author: Brian Aker
7 */
8
9 #ifndef __MEMCACHED_STORAGE_H__
10 #define __MEMCACHED_STORAGE_H__
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 /* All of the functions for adding data to the server */
17 memcached_return memcached_set(memcached_st *ptr, const char *key, size_t key_length,
18 const char *value, size_t value_length,
19 time_t expiration,
20 uint32_t flags);
21 memcached_return memcached_add(memcached_st *ptr, const char *key, size_t key_length,
22 const char *value, size_t value_length,
23 time_t expiration,
24 uint32_t flags);
25 memcached_return memcached_replace(memcached_st *ptr, const char *key, size_t key_length,
26 const char *value, size_t value_length,
27 time_t expiration,
28 uint32_t flags);
29 memcached_return memcached_append(memcached_st *ptr,
30 const char *key, size_t key_length,
31 const char *value, size_t value_length,
32 time_t expiration,
33 uint32_t flags);
34 memcached_return memcached_prepend(memcached_st *ptr,
35 const char *key, size_t key_length,
36 const char *value, size_t value_length,
37 time_t expiration,
38 uint32_t flags);
39 memcached_return memcached_cas(memcached_st *ptr,
40 const char *key, size_t key_length,
41 const char *value, size_t value_length,
42 time_t expiration,
43 uint32_t flags,
44 uint64_t cas);
45
46 memcached_return memcached_set_by_key(memcached_st *ptr,
47 const char *master_key, size_t master_key_length,
48 const char *key, size_t key_length,
49 const char *value, size_t value_length,
50 time_t expiration,
51 uint32_t flags);
52
53 memcached_return memcached_add_by_key(memcached_st *ptr,
54 const char *master_key, size_t master_key_length,
55 const char *key, size_t key_length,
56 const char *value, size_t value_length,
57 time_t expiration,
58 uint32_t flags);
59
60 memcached_return memcached_replace_by_key(memcached_st *ptr,
61 const char *master_key, size_t master_key_length,
62 const char *key, size_t key_length,
63 const char *value, size_t value_length,
64 time_t expiration,
65 uint32_t flags);
66
67 memcached_return memcached_prepend_by_key(memcached_st *ptr,
68 const char *master_key, size_t master_key_length,
69 const char *key, size_t key_length,
70 const char *value, size_t value_length,
71 time_t expiration,
72 uint32_t flags);
73
74 memcached_return memcached_append_by_key(memcached_st *ptr,
75 const char *master_key, size_t master_key_length,
76 const char *key, size_t key_length,
77 const char *value, size_t value_length,
78 time_t expiration,
79 uint32_t flags);
80
81 memcached_return memcached_cas_by_key(memcached_st *ptr,
82 const char *master_key, size_t master_key_length,
83 const char *key, size_t key_length,
84 const char *value, size_t value_length,
85 time_t expiration,
86 uint32_t flags,
87 uint64_t cas);
88
89 #ifdef __cplusplus
90 }
91 #endif
92
93 #endif /* __MEMCACHED_STORAGE_H__ */