Changeset 2340f0 for memcached_hash/README
- Timestamp:
- 02/19/08 16:26:15 (4 years ago)
- Branches:
- master-v0.7, master-v0.6, memcached_hash, upstream_count_limit
- Children:
- fb3f9e, f54237
- Parents:
- 030d22
- git-author:
- Tomash Brechko <tomash.brechko@…> (02/19/08 16:26:15)
- git-committer:
- Tomash Brechko <tomash.brechko@…> (02/19/08 16:26:15)
- File:
-
- 1 edited
-
memcached_hash/README (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
memcached_hash/README
r9bc63b r2340f0 85 85 location / { 86 86 set $memcached_key "$uri$is_args$args"; 87 set $memcached_namespace "prefix"; 87 88 memcached_pass memcached_cluster; 88 89 error_page 404 502 504 = @fallback; … … 169 170 supports only integer weights and does not support consistent hashing. 170 171 172 If the client uses a namespace, i.e. constructor has 173 174 namespace => 'prefix', 175 176 then you have to set $memcached_namespace variable in nginx 177 configuration file: 178 179 set $memcached_namespace "prefix"; 180 181 Note that this is not the same as prepending prefix to $memcached_key: 182 namespace prefix is not hashed when the key is hashed to decide which 183 memcached server to talk to. 184 171 185 Also note that nginx escapes an URI key before sending the request to 172 186 memcached. As of this writing the transformation is equivalent to the
Note: See TracChangeset
for help on using the changeset viewer.
