Skip to content

Commit 4bb264e

Browse files
committed
Document ini settings for the default memcached connection configurations
This documents memcached.default_consistent_hash, default_binary_protocol, and default_connect_timeout. For issue #233
1 parent 52c644b commit 4bb264e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

memcached.ini

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,32 @@ memcached.serializer = "igbinary"
111111
; environment.
112112
; the default is 2
113113
memcached.store_retry_count = 2
114+
115+
; Sets the default for consistent hashing for new connections.
116+
; (To configure consistent hashing for session connections,
117+
; use memcached.sess_consistent_hash instead)
118+
;
119+
; If set to On, consistent hashing (libketama) is used
120+
; for session handling.
121+
; When consistent hashing is used, one can add or remove cache
122+
; node(s) without messing up too much with existing keys
123+
; default is Off
124+
memcached.default_consistent_hash = Off
125+
126+
; Sets the default memcached protocol for new connections.
127+
; (To configure the memcached protocol for connections used by sessions,
128+
; use memcached.sess_binary_protocol instead)
129+
;
130+
; If set to On, the memcached binary protocol is used by default.
131+
; If set to Off, the memcached text protocol is used.
132+
; Default is Off
133+
memcached.default_binary_protocol = Off
134+
135+
; Sets the default memcached connection timeout for new connections.
136+
; (To configure the memcached connection timeout for sessions,
137+
; use memcached.sess_connect_timeout instead)
138+
; In non-blocking mode this changes the value of the timeout.
139+
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
140+
; Specifying 0 means using the memcached library's default connection timeout.
141+
; Default is 0.
142+
memcached.default_connect_timeout = 0

0 commit comments

Comments
 (0)