Changeset e77a68


Ignore:
Timestamp:
02/01/08 17:34:24 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master, ketama-compat
Children:
83535a
Parents:
b995a3
git-author:
Tomash Brechko <tomash.brechko@…> (02/01/08 17:34:24)
git-committer:
Tomash Brechko <tomash.brechko@…> (02/01/08 17:34:24)
Message:

Document noreply mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Cache/Memcached/Fast.pm

    r2b0ac4 re77a68  
    158158address is either a scalar, a hash reference, or an array reference 
    159159(for compatibility with Cache::Memcached, deprecated).  If hash 
    160 reference, the keys are I<address> (scalar) and I<weight> (positive 
    161 rational number).  The server address is in the form I<host:port> for 
    162 network TCP connections, or F</path/to/unix.sock> for local Unix 
    163 socket connections.  When weight is not given, 1 is assumed.  Client 
    164 will distribute keys across servers proportionally to server weights. 
     160reference, the keys are I<address> (scalar), I<weight> (positive 
     161rational number), and I<noreply> (boolean flag).  The server address 
     162is in the form I<host:port> for network TCP connections, or 
     163F</path/to/unix.sock> for local Unix socket connections.  When weight 
     164is not given, 1 is assumed.  Client will distribute keys across 
     165servers proportionally to server weights. 
    165166 
    166167If you want to get key distribution compatible with Cache::Memcached, 
    167168all server weights should be integer, and their sum should be less 
    168169than 32768. 
     170 
     171I<noreply> can be used B<only> together with patched B<memcached> 
     172server, which is available from 
     173L<http://openhack.ru/memcached-patched> (branch I<noreply>).  When 
     174enabled, commands executed in a void context will instruct the server 
     175to not send the reply.  Compare with L</nowait> below.  If you enable 
     176I<noreply> for unmodified server, things will go wrongly, and the 
     177client will eventually block.  Use with care. 
    169178 
    170179 
Note: See TracChangeset for help on using the changeset viewer.