X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fcommon.h;h=268109b31a2969d29fe8fb0a612280a871c3f1af;hb=99803a66dda300ea7a5741fe8aae852e8b746366;hp=76c734ed1fe25c4c7bd7ab294818ea07bfc174ab;hpb=b1d5d8be2237f04ccc99939399ebe7efad3f684e;p=awesomized%2Flibmemcached diff --git a/lib/common.h b/lib/common.h index 76c734ed..268109b3 100644 --- a/lib/common.h +++ b/lib/common.h @@ -17,11 +17,22 @@ #include #include #include -#include #include #include #include #include +#include "libmemcached_config.h" + +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif @@ -39,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), @@ -49,6 +64,7 @@ typedef enum { MEM_USE_CRC= (1 << 5), MEM_USE_CACHE_LOOKUPS= (1 << 6), MEM_SUPPORT_CAS= (1 << 7), + MEM_BUFFER_REQUESTS= (1 << 8), } memcached_flags; /* Hashing algo */