forked from drivefast/asterisk-res_memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memcached.conf.sample
31 lines (29 loc) · 2.61 KB
/
memcached.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[general]
ttl=0 ; sets the default time-to-live, in seconds, for the key-value entries added
; or modified in the cache store. default value is 0, which means the entries
; will persist forever. (note that memcached does NOT store its database on
; a non-volatile support, so the entries will be lost anyway when the
; memcached server goes down.) the ttl value can be overridden in the dialplan
; by the MCDTTL dialplan variable.
;binary_proto=yes ; using binary protocol for conversation with server; default is yes. note that
; the MCDCOUNTER() function is not happy if the protocol is not binary
hash=default ; hashing mode (see libmemcached documentation); accepted values are default
; (which is actually md5), md5, crc, fnv1_64, fnv1_64a, fnv1_32, fnv1_32a,
; jenkins, hsieh, murmur. make sure whatever you select is actually
; supported by the library ecosystem on your machine
;keyprefix= ; whatever string you specify here is prepended to each key that is retrieved
; or stored, so that you can create some sort of a "domain" for your
; asterisk server
server=localhost:11211 ; multiple 'server=' entries will create a cluster of servers to connect to;
;server=memcache.server.com:11211 ; each entry is in the form host[:port], host being a fqdn or an ip address,
; the default memcached port is 11211. if no entries, the module will at
; least attempt to connect to a memcached running on the localhost
poolmin=20 ; minimum value toi mantain connec ions in pool (will open only if needed)
poolmax=50 ; max value tu mantain connections in pool
;;;;;;;;;;;;; UGLY NOTE ;;;;;;;;;;;;;;
; apparently, creating a memcached connection pool in libmemcached 1.0.4 fails
; when the parameters --BINARY-PROTOCOL and --HASH= are submitted. therefore
; we cannot select the binary protocol, and as such the MCDCOUNTER() functions
; fail. hopefully i will find a workaround soon, or libmemcached 1.0 will be
; fixed. but for now i had no other choice than ignoring the binary_proto= and
; the hash= parameters.