From 371a82b527a8692fcaad05994a8823776fb6efa3 Mon Sep 17 00:00:00 2001 From: Date: Sat, 22 Mar 2008 14:45:39 -0700 Subject: [PATCH] Refactor out memcached storage functions. --- libmemcached/Makefile.am | 1 + libmemcached/memcached.h | 74 ++-------------------------------------- 2 files changed, 3 insertions(+), 72 deletions(-) diff --git a/libmemcached/Makefile.am b/libmemcached/Makefile.am index 06480a5d..bd2723e2 100644 --- a/libmemcached/Makefile.am +++ b/libmemcached/Makefile.am @@ -30,6 +30,7 @@ pkginclude_HEADERS= memcached.h \ memcached_constants.h \ memcached_result.h \ memcached_server.h \ + memcached_storage.h \ memcached_string.h \ memcached_types.h \ memcached_watchpoint.h diff --git a/libmemcached/memcached.h b/libmemcached/memcached.h index b84d4373..2b547184 100644 --- a/libmemcached/memcached.h +++ b/libmemcached/memcached.h @@ -118,36 +118,6 @@ char *memcached_strerror(memcached_st *ptr, memcached_return rc); memcached_return memcached_behavior_set(memcached_st *ptr, memcached_behavior flag, uint64_t data); uint64_t memcached_behavior_get(memcached_st *ptr, memcached_behavior flag); -/* All of the functions for adding data to the server */ -memcached_return memcached_set(memcached_st *ptr, char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); -memcached_return memcached_add(memcached_st *ptr, char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); -memcached_return memcached_replace(memcached_st *ptr, char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); -memcached_return memcached_append(memcached_st *ptr, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); -memcached_return memcached_prepend(memcached_st *ptr, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); -memcached_return memcached_cas(memcached_st *ptr, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags, - uint64_t cas); - /* Get functions */ char *memcached_get(memcached_st *ptr, char *key, size_t key_length, size_t *value_length, @@ -198,48 +168,6 @@ memcached_return memcached_mget_by_key(memcached_st *ptr, char **keys, size_t *key_length, unsigned int number_of_keys); -memcached_return memcached_set_by_key(memcached_st *ptr, - char *master_key, size_t master_key_length, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); - -memcached_return memcached_add_by_key(memcached_st *ptr, - char *master_key, size_t master_key_length, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); - -memcached_return memcached_replace_by_key(memcached_st *ptr, - char *master_key, size_t master_key_length, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); - -memcached_return memcached_prepend_by_key(memcached_st *ptr, - char *master_key, size_t master_key_length, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); - -memcached_return memcached_append_by_key(memcached_st *ptr, - char *master_key, size_t master_key_length, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags); - -memcached_return memcached_cas_by_key(memcached_st *ptr, - char *master_key, size_t master_key_length, - char *key, size_t key_length, - char *value, size_t value_length, - time_t expiration, - uint32_t flags, - uint64_t cas); memcached_return memcached_delete_by_key(memcached_st *ptr, char *master_key, size_t master_key_length, char *key, size_t key_length, @@ -268,4 +196,6 @@ memcached_return memcached_server_cursor(memcached_st *ptr, } #endif +#include + #endif /* __MEMCACHED_H__ */ -- 2.30.2