Changeset 2340f0
- 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)
- Location:
- memcached_hash
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
memcached_hash/Changes
r432a6a r2340f0 1 1 Revision history of ngx_http_upstream_memcached_hash_module. 2 3 4 0.02 2008-02-19 5 - add support for $memcached_namespace variable. 6 7 If Cache::Memcached::Fast uses 8 9 namespace => 'prefix', 10 11 then nginx configuration file should have 12 13 set $memcached_namespace "prefix"; 14 15 This is not the same as prepending "prefix" to $memcached_key: 16 namespace prefix should not be hashed. 2 17 3 18 -
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 -
memcached_hash/TODO
r7fe430 r2340f0 1 - Comment the code, especially integer computations.2 3 - Add gzip support.4 5 1 - Add populate.pl to the distribution. 6 2
Note: See TracChangeset
for help on using the changeset viewer.
