X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fconstants.h;h=106aec496d5050f30c2d2c2da435810611e4350e;hb=3e87de62b0b39279bdec62a07b45e42fe798fd41;hp=2cf2767190ef24e26996fc222c1930e586e7f9b9;hpb=28adf7b936c6f5c25b7526ff56ec1256da1246d4;p=m6w6%2Flibmemcached diff --git a/libmemcached/constants.h b/libmemcached/constants.h index 2cf27671..106aec49 100644 --- a/libmemcached/constants.h +++ b/libmemcached/constants.h @@ -54,6 +54,8 @@ #define MEMCACHED_EXPIRATION_NOT_ADD 0xffffffffU #define MEMCACHED_VERSION_STRING_LENGTH 24 #define MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH 20 +#define MEMCACHED_SERVER_FAILURE_LIMIT 5 +#define MEMCACHED_SERVER_FAILURE_RETRY_TIMEOUT 2 enum memcached_server_distribution_t { @@ -127,7 +129,8 @@ enum memcached_callback_t { #endif MEMCACHED_CALLBACK_GET_FAILURE = 7, MEMCACHED_CALLBACK_DELETE_TRIGGER = 8, - MEMCACHED_CALLBACK_MAX + MEMCACHED_CALLBACK_MAX, + MEMCACHED_CALLBACK_NAMESPACE= MEMCACHED_CALLBACK_PREFIX_KEY }; #ifndef __cplusplus @@ -154,11 +157,14 @@ typedef enum memcached_hash_t memcached_hash_t; #endif enum memcached_connection_t { - MEMCACHED_CONNECTION_UNKNOWN, MEMCACHED_CONNECTION_TCP, MEMCACHED_CONNECTION_UDP, - MEMCACHED_CONNECTION_UNIX_SOCKET, - MEMCACHED_CONNECTION_MAX + MEMCACHED_CONNECTION_UNIX_SOCKET +}; + +enum { + MEMCACHED_CONNECTION_UNKNOWN= 0, + MEMCACHED_CONNECTION_MAX= 0 }; #ifndef __cplusplus