2 * Summary: Storage functions for libmemcached
4 * Copy: See Copyright for the status of this software.
9 #ifndef __MEMCACHED_STORAGE_H__
10 #define __MEMCACHED_STORAGE_H__
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
,
21 memcached_return
memcached_add(memcached_st
*ptr
, const char *key
, size_t key_length
,
22 const char *value
, size_t value_length
,
25 memcached_return
memcached_replace(memcached_st
*ptr
, const char *key
, size_t key_length
,
26 const char *value
, size_t value_length
,
29 memcached_return
memcached_append(memcached_st
*ptr
,
30 const char *key
, size_t key_length
,
31 const char *value
, size_t value_length
,
34 memcached_return
memcached_prepend(memcached_st
*ptr
,
35 const char *key
, size_t key_length
,
36 const char *value
, size_t value_length
,
39 memcached_return
memcached_cas(memcached_st
*ptr
,
40 const char *key
, size_t key_length
,
41 const char *value
, size_t value_length
,
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
,
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
,
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
,
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
,
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
,
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
,
93 #endif /* __MEMCACHED_STORAGE_H__ */