Changeset 2340f0


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.

Location:
memcached_hash
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • memcached_hash/Changes

    r432a6a r2340f0  
    11Revision history of ngx_http_upstream_memcached_hash_module. 
     2 
     3 
     40.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. 
    217 
    318 
  • 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 
  • memcached_hash/TODO

    r7fe430 r2340f0  
    1 - Comment the code, especially integer computations. 
    2  
    3 - Add gzip support. 
    4  
    51- Add populate.pl to the distribution. 
    62 
Note: See TracChangeset for help on using the changeset viewer.