Merge pull request #153 from jparise/connection-best-practices
Mention the `no_delay` connection flag
This commit is contained in:
commit
e396725a90
Binary file not shown.
|
@ -73,8 +73,11 @@ same key.
|
||||||
Best Practices
|
Best Practices
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
- Always set the connect_timeout and timeout arguments in the constructor to
|
- Always set the `connect_timeout` and `timeout` arguments in the
|
||||||
avoid blocking your process when memcached is slow.
|
:py:class:`pymemcache.client.base.Client` constructor to avoid blocking
|
||||||
|
your process when memcached is slow. You might also want to enable the
|
||||||
|
`no_delay` option, which sets the TCP_NODELAY flag on the connection's
|
||||||
|
socket.
|
||||||
- Use the "noreply" flag for a significant performance boost. The "noreply"
|
- Use the "noreply" flag for a significant performance boost. The "noreply"
|
||||||
flag is enabled by default for "set", "add", "replace", "append", "prepend",
|
flag is enabled by default for "set", "add", "replace", "append", "prepend",
|
||||||
and "delete". It is disabled by default for "cas", "incr" and "decr". It
|
and "delete". It is disabled by default for "cas", "incr" and "decr". It
|
||||||
|
|
Loading…
Reference in New Issue