X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fcommon.h;h=c87beb60810ff5ad968da226c4a6144ba0e44ea2;hb=336c207e439cff2f6c4ae904c798c7f3f33b3e52;hp=35775ba8e873ac58f6f3fa901d8569a0a7a74d26;hpb=edeb3965773b750c0cf454e8b1494fd030ba0369;p=m6w6%2Flibmemcached diff --git a/lib/common.h b/lib/common.h index 35775ba8..c87beb60 100644 --- a/lib/common.h +++ b/lib/common.h @@ -50,6 +50,10 @@ #include "libmemcached_probes.h" #define MEMCACHED_BLOCK_SIZE 1024 +#define MEMCACHED_DEFAULT_COMMAND_SIZE 350 +#define SMALL_STRING_LEN 1024 +#define HUGE_STRING_LEN 8196 + typedef enum { MEM_NO_BLOCK= (1 << 0), @@ -106,6 +110,7 @@ memcached_return value_fetch(memcached_st *ptr, char *buffer, memcached_result_st *result, unsigned int server_key); +void server_list_free(memcached_st *ptr, memcached_server_st *servers); #endif /* __COMMON_H__ */