From: Date: Mon, 21 Jan 2008 23:26:49 +0000 (-0500) Subject: Added prepend, append, add, replace to memcached.hh (C++ API) X-Git-Tag: 0.14~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4cc55ae3fe7fabd5f815911ee4eb4878eb7cf83e;p=awesomized%2Flibmemcached Added prepend, append, add, replace to memcached.hh (C++ API) --- diff --git a/include/memcached.hh b/include/memcached.hh index a27971c1..9a38187f 100644 --- a/include/memcached.hh +++ b/include/memcached.hh @@ -35,10 +35,41 @@ public: memcached_return set(char *key, char *value, size_t value_length) { - return memcached_set(&memc, key, strlen(key), - value, value_length, + return memcached_set(&memc, key, strlen(key), + value, value_length, (time_t)0, (uint32_t)0); } + + memcached_return add(char *key, char *value, size_t value_length) + { + return memcached_add(&memc, key, strlen(key), + value, value_length, + (time_t)0, (uint32_t)0); + } + + memcached_return replace(char *key, char *value, size_t value_length) + { + return memcached_replace(&memc, key, strlen(key), + value, value_length, + (time_t)0, (uint32_t)0); + } + + memcached_return prepend(char *key, char *value, size_t value_length) + { + return memcached_prepend(&memc, key, strlen(key), + value, value_length, + (time_t)0, + (uint32_t)0); + } + + + memcached_return append(char *key, char *value, size_t value_length) + { + return memcached_append(&memc, key, strlen(key), + value, value_length, + (time_t)0, + (uint32_t)0); + } ~Memcached() { memcached_free(&memc);