From 9c59975e31edefffd227d29f95d28ad9ae72c187 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Fri, 5 May 2017 09:10:56 -0700 Subject: [PATCH] Mention the `no_delay` connection flag Also, improve reST formatting a bit and remove a stray .DS_Store file. --- docs/.DS_Store | Bin 6148 -> 0 bytes docs/getting_started.rst | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) delete mode 100644 docs/.DS_Store diff --git a/docs/.DS_Store b/docs/.DS_Store deleted file mode 100644 index fe28e516df34be4e780d4f7e9776b368282e63d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK&1%~~5Z-m1R*G^^Ab}Pd*n53&eq3LLlUz!n1_kHP6jxg<@q$9<8Csb_imkVGA5E_WNH8CF2BrVS+(2WXk)Fpe(%2L zZv>k`5QLjsLGUsj<B`(>%{0 zz}g8PNHHCT+ef*o5~)OC>e(9SXHup4w3m-nTAnW#9)>&pLQEjFpC~bqrQ|Y`)s-pg z0*&2Isu4`)Z_y3k_lM!b*=)bl?X+0;pfhi=S-0D6vBQHW^SS5y-tOb41Ag`9?Ys9M zK7RWA_arVN68gXk-ybWB?iXn*rVXfrR@0Ke@U8 zH$gZc1IWPt$pCF0$HzTbo4Z?AR;lk=2KowAi;k-;{z(DDT*VNpui^)wM!?Us0T?-~ SErJIGe*_E-I3NT6l!4#0Mt11{ 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