1 libmemcached Constants and Defaults
2 ===================================
7 #include <libmemcached-|libmemcached_version|/memcached.h>
8 Compile and link with -lmemcached
10 .. c:macro:: LIBMEMCACHED_VERSION_STRING
12 String value of libmemcached version such as "|release|"
14 .. c:macro:: LIBMEMCACHED_VERSION_HEX
16 Hex value of the version number, e.g. "0x00048000".
17 This can be used for comparing versions based on number.
20 .. c:macro:: MEMCACHED_DEFAULT_PORT
22 The default port used by `memcached`.
24 .. c:macro:: MEMCACHED_DEFAULT_TIMEOUT
26 Default timeout of 5000 milliseconds.
28 .. c:macro:: MEMCACHED_DEFAULT_CONNECT_TIMEOUT
30 Default connect timeout of 4000 milliseconds.
33 .. c:macro:: MEMCACHED_MAX_BUFFER
35 Default size of read/write buffers (which includes the null pointer).
37 .. c:macro:: MEMCACHED_MAX_KEY
39 Default maximum size of a key (which includes the null pointer). Master keys
40 have no limit, this only applies to keys used for storage.
42 .. c:macro:: MEMCACHED_MAX_NAMESPACE
44 Maximum length allowed for namespacing of a key. Defaults to 128.
47 .. c:macro:: MEMCACHED_MAX_HOST_LENGTH
49 Maximum allowed length of the hostname.
51 .. c:macro:: MEMCACHED_MAX_HOST_SORT_LENGTH
53 Length of the host string used for sorting. Used for Ketama.
55 .. c:macro:: MEMCACHED_MAX_INTEGER_DISPLAY_LENGTH
57 Maximum display width of an integer represented as string.
60 .. c:macro:: MEMCACHED_CONTINUUM_ADDITION
62 How many extra slots we should build for in the continuum, defaults to 10.
64 .. c:macro:: MEMCACHED_EXPIRATION_NOT_ADD
68 .. c:macro:: MEMCACHED_STRIDE
70 This is the "stride" used in the consistent hash used between replicas.
73 .. c:macro:: MEMCACHED_SERVER_FAILURE_LIMIT
77 .. c:macro:: MEMCACHED_SERVER_FAILURE_RETRY_TIMEOUT
81 .. c:macro:: MEMCACHED_SERVER_FAILURE_DEAD_TIMEOUT
86 .. c:macro:: MEMCACHED_VERSION_STRING_LENGTH
93 These compile time defaults are provided by `libmemcached` for convenience.