summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Parise <jon@pinterest.com>2017-05-05 09:10:56 -0700
committerJon Parise <jon@pinterest.com>2017-05-05 09:10:56 -0700
commit9c59975e31edefffd227d29f95d28ad9ae72c187 (patch)
tree8f1c93edeb957dca8891dfc31fed77cefe8daa6e
parent80ca8d7620a0d70b11d06a01945226b30c1e873c (diff)
downloadpymemcache-9c59975e31edefffd227d29f95d28ad9ae72c187.tar.gz
Mention the `no_delay` connection flag
Also, improve reST formatting a bit and remove a stray .DS_Store file.
-rw-r--r--docs/.DS_Storebin6148 -> 0 bytes
-rw-r--r--docs/getting_started.rst7
2 files changed, 5 insertions, 2 deletions
diff --git a/docs/.DS_Store b/docs/.DS_Store
deleted file mode 100644
index fe28e51..0000000
--- a/docs/.DS_Store
+++ /dev/null
Binary files differ
diff --git a/docs/getting_started.rst b/docs/getting_started.rst
index c5f5b2e..6e1b8d7 100644
--- a/docs/getting_started.rst
+++ b/docs/getting_started.rst
@@ -73,8 +73,11 @@ same key.
Best Practices
---------------
- - Always set the connect_timeout and timeout arguments in the constructor to
- avoid blocking your process when memcached is slow.
+ - Always set the `connect_timeout` and `timeout` arguments in the
+ :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"
flag is enabled by default for "set", "add", "replace", "append", "prepend",
and "delete". It is disabled by default for "cas", "incr" and "decr". It