Skip to content

Commit cfd24d3

Browse files
committed
Merge pull request openresty#44 from kapouer/patch-1
document memcached max key length and set_md5
2 parents 82ddb5a + 12b209a commit cfd24d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ Several common pitfalls for beginners:
990990

991991
* The original response carries a `Cache-Control` header that explicitly disables caching and you do not configure directives like [srcache_response_cache_control](#srcache_response_cache_control).
992992
* The original response is already gzip compressed, which is not cached by default (see [srcache_ignore_content_encoding](#srcache_ignore_content_encoding)).
993+
* Memcached might return `CLIENT_ERROR bad command line format` when using a too long key (250 chars as of version 1.4.25). It is thus safer to use `set_md5 $key $uri$args;` instead of `set $key $uri$args;`. The `set_md5` directive (and more) is available from [OpenResty's set-misc module](https://github.com/openresty/set-misc-nginx-module).
993994

994995
[Back to TOC](#table-of-contents)
995996

0 commit comments

Comments
 (0)