2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
22 /* All of the functions for adding data to the server */
24 memcached_return_t
memcached_set(memcached_st
*ptr
, const char *key
, size_t key_length
,
25 const char *value
, size_t value_length
, time_t expiration
,
28 memcached_return_t
memcached_add(memcached_st
*ptr
, const char *key
, size_t key_length
,
29 const char *value
, size_t value_length
, time_t expiration
,
32 memcached_return_t
memcached_replace(memcached_st
*ptr
, const char *key
, size_t key_length
,
33 const char *value
, size_t value_length
, time_t expiration
,
36 memcached_return_t
memcached_append(memcached_st
*ptr
, const char *key
, size_t key_length
,
37 const char *value
, size_t value_length
, time_t expiration
,
40 memcached_return_t
memcached_prepend(memcached_st
*ptr
, const char *key
, size_t key_length
,
41 const char *value
, size_t value_length
, time_t expiration
,
44 memcached_return_t
memcached_cas(memcached_st
*ptr
, const char *key
, size_t key_length
,
45 const char *value
, size_t value_length
, time_t expiration
,
46 uint32_t flags
, uint64_t cas
);
49 memcached_return_t
memcached_set_by_key(memcached_st
*ptr
, const char *group_key
,
50 size_t group_key_length
, const char *key
, size_t key_length
,
51 const char *value
, size_t value_length
, time_t expiration
,
55 memcached_return_t
memcached_add_by_key(memcached_st
*ptr
, const char *group_key
,
56 size_t group_key_length
, const char *key
, size_t key_length
,
57 const char *value
, size_t value_length
, time_t expiration
,
61 memcached_return_t
memcached_replace_by_key(memcached_st
*ptr
, const char *group_key
,
62 size_t group_key_length
, const char *key
,
63 size_t key_length
, const char *value
,
64 size_t value_length
, time_t expiration
, uint32_t flags
);
67 memcached_return_t
memcached_prepend_by_key(memcached_st
*ptr
, const char *group_key
,
68 size_t group_key_length
, const char *key
,
69 size_t key_length
, const char *value
,
70 size_t value_length
, time_t expiration
, uint32_t flags
);
73 memcached_return_t
memcached_append_by_key(memcached_st
*ptr
, const char *group_key
,
74 size_t group_key_length
, const char *key
,
75 size_t key_length
, const char *value
,
76 size_t value_length
, time_t expiration
, uint32_t flags
);
79 memcached_return_t
memcached_cas_by_key(memcached_st
*ptr
, const char *group_key
,
80 size_t group_key_length
, const char *key
, size_t key_length
,
81 const char *value
, size_t value_length
, time_t expiration
,
82 uint32_t flags
, uint64_t cas
);