Connection parameters

Connection options can be specified as string or hash.

If the connection options are specified as a string, the libmemcached method memcached_servers_parse will parse these options. This method expecting options into the following format:
server1:port1,server2,server3,server4:port4
See libmemcached documentation for more details.

If the connection options are specified as a hash, they will be processed by multipurpose modern method memcached.
Any memcached method's option of libmemcached library that is installed in your system can be specified (see libmemcached documentation
). You have to specify options without "--" prefix.

The list of the most useful options:
$.server[<servername>:<port>]
$.binary-protocol(true)
$.connect-timeout(N)
$.tcp-keepalive(true)



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 15.09.2012