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: Storage related functions, aka set, replace,..
12 #ifndef __MEMCACHED_STORAGE_H__
13 #define __MEMCACHED_STORAGE_H__
15 #include "libmemcached/memcached.h"
21 /* All of the functions for adding data to the server */
23 memcached_return_t
memcached_set(memcached_st
*ptr
, const char *key
, size_t key_length
,
24 const char *value
, size_t value_length
,
28 memcached_return_t
memcached_add(memcached_st
*ptr
, const char *key
, size_t key_length
,
29 const char *value
, size_t value_length
,
33 memcached_return_t
memcached_replace(memcached_st
*ptr
, const char *key
, size_t key_length
,
34 const char *value
, size_t value_length
,
38 memcached_return_t
memcached_append(memcached_st
*ptr
,
39 const char *key
, size_t key_length
,
40 const char *value
, size_t value_length
,
44 memcached_return_t
memcached_prepend(memcached_st
*ptr
,
45 const char *key
, size_t key_length
,
46 const char *value
, size_t value_length
,
50 memcached_return_t
memcached_cas(memcached_st
*ptr
,
51 const char *key
, size_t key_length
,
52 const char *value
, size_t value_length
,
58 memcached_return_t
memcached_set_by_key(memcached_st
*ptr
,
59 const char *master_key
, size_t master_key_length
,
60 const char *key
, size_t key_length
,
61 const char *value
, size_t value_length
,
66 memcached_return_t
memcached_add_by_key(memcached_st
*ptr
,
67 const char *master_key
, size_t master_key_length
,
68 const char *key
, size_t key_length
,
69 const char *value
, size_t value_length
,
74 memcached_return_t
memcached_replace_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
,
82 memcached_return_t
memcached_prepend_by_key(memcached_st
*ptr
,
83 const char *master_key
, size_t master_key_length
,
84 const char *key
, size_t key_length
,
85 const char *value
, size_t value_length
,
90 memcached_return_t
memcached_append_by_key(memcached_st
*ptr
,
91 const char *master_key
, size_t master_key_length
,
92 const char *key
, size_t key_length
,
93 const char *value
, size_t value_length
,
98 memcached_return_t
memcached_cas_by_key(memcached_st
*ptr
,
99 const char *master_key
, size_t master_key_length
,
100 const char *key
, size_t key_length
,
101 const char *value
, size_t value_length
,
110 #endif /* __MEMCACHED_STORAGE_H__ */