semver: 1.0 -> 1
[m6w6/libmemcached] / include / libmemcached-1 / defaults.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 /* Public defines */
19 #define MEMCACHED_DEFAULT_PORT 11211
20 #define MEMCACHED_DEFAULT_PORT_STRING "11211"
21 #define MEMCACHED_POINTS_PER_SERVER 100
22 #define MEMCACHED_POINTS_PER_SERVER_KETAMA 160
23 #define MEMCACHED_CONTINUUM_SIZE \
24 MEMCACHED_POINTS_PER_SERVER * 100 /* This would then set max hosts to 100 */
25 #define MEMCACHED_STRIDE 4
26 #define MEMCACHED_DEFAULT_TIMEOUT 5000
27 #define MEMCACHED_DEFAULT_CONNECT_TIMEOUT 4000
28 #define MEMCACHED_CONTINUUM_ADDITION \
29 10 /* How many extra slots we should build for in the continuum */
30 #define MEMCACHED_EXPIRATION_NOT_ADD 0xffffffffU
31 #define MEMCACHED_SERVER_FAILURE_LIMIT 5
32 #define MEMCACHED_SERVER_FAILURE_RETRY_TIMEOUT 2
33 #define MEMCACHED_SERVER_FAILURE_DEAD_TIMEOUT 0
34 #define MEMCACHED_SERVER_TIMEOUT_LIMIT 0