Ignore:
Timestamp:
02/19/08 16:26:15 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
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)
Message:

Update Changes and README.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • memcached_hash/README

    r9bc63b r2340f0  
    8585      location / { 
    8686          set             $memcached_key   "$uri$is_args$args"; 
     87          set             $memcached_namespace   "prefix"; 
    8788          memcached_pass  memcached_cluster; 
    8889          error_page      404 502 504 = @fallback; 
     
    169170supports only integer weights and does not support consistent hashing. 
    170171 
     172If the client uses a namespace, i.e. constructor has 
     173 
     174  namespace => 'prefix', 
     175 
     176then you have to set $memcached_namespace variable in nginx 
     177configuration file: 
     178 
     179  set  $memcached_namespace  "prefix"; 
     180 
     181Note that this is not the same as prepending prefix to $memcached_key: 
     182namespace prefix is not hashed when the key is hashed to decide which 
     183memcached server to talk to. 
     184 
    171185Also note that nginx escapes an URI key before sending the request to 
    172186memcached.  As of this writing the transformation is equivalent to the 
Note: See TracChangeset for help on using the changeset viewer.