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__
12 #include "libmemcached/memcached_types.h"
18 /* All of the functions for adding data to the server */
20 memcached_return
memcached_set(memcached_st
*ptr
, const char *key
, size_t key_length
,
21 const char *value
, size_t value_length
,
25 memcached_return
memcached_add(memcached_st
*ptr
, const char *key
, size_t key_length
,
26 const char *value
, size_t value_length
,
30 memcached_return
memcached_replace(memcached_st
*ptr
, const char *key
, size_t key_length
,
31 const char *value
, size_t value_length
,
35 memcached_return
memcached_append(memcached_st
*ptr
,
36 const char *key
, size_t key_length
,
37 const char *value
, size_t value_length
,
41 memcached_return
memcached_prepend(memcached_st
*ptr
,
42 const char *key
, size_t key_length
,
43 const char *value
, size_t value_length
,
47 memcached_return
memcached_cas(memcached_st
*ptr
,
48 const char *key
, size_t key_length
,
49 const char *value
, size_t value_length
,
55 memcached_return
memcached_set_by_key(memcached_st
*ptr
,
56 const char *master_key
, size_t master_key_length
,
57 const char *key
, size_t key_length
,
58 const char *value
, size_t value_length
,
63 memcached_return
memcached_add_by_key(memcached_st
*ptr
,
64 const char *master_key
, size_t master_key_length
,
65 const char *key
, size_t key_length
,
66 const char *value
, size_t value_length
,
71 memcached_return
memcached_replace_by_key(memcached_st
*ptr
,
72 const char *master_key
, size_t master_key_length
,
73 const char *key
, size_t key_length
,
74 const char *value
, size_t value_length
,
79 memcached_return
memcached_prepend_by_key(memcached_st
*ptr
,
80 const char *master_key
, size_t master_key_length
,
81 const char *key
, size_t key_length
,
82 const char *value
, size_t value_length
,
87 memcached_return
memcached_append_by_key(memcached_st
*ptr
,
88 const char *master_key
, size_t master_key_length
,
89 const char *key
, size_t key_length
,
90 const char *value
, size_t value_length
,
95 memcached_return
memcached_cas_by_key(memcached_st
*ptr
,
96 const char *master_key
, size_t master_key_length
,
97 const char *key
, size_t key_length
,
98 const char *value
, size_t value_length
,
107 #endif /* __MEMCACHED_STORAGE_H__ */