X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_behavior.pod;h=da851000bfabd001df7b0214df2b79f7f8f776cf;hb=b4de8d3fd063b9017797dd9809ab3acb8a537606;hp=dd7184541743adf05d6dcdcbe15649db76ffb497;hpb=4c8d96d66ed97bf25db6afbd14abfbeb42661371;p=m6w6%2Flibmemcached diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index dd718454..da851000 100644 --- a/docs/memcached_behavior.pod +++ b/docs/memcached_behavior.pod @@ -14,7 +14,7 @@ C Client Library for memcached (libmemcached, -lmemcached) memcached_behavior_get (memcached_st *ptr, memcached_behavior flag); - memcached_return + memcached_return_t memcached_behavior_set (memcached_st *ptr, memcached_behavior flag, uint64_t data); @@ -209,6 +209,15 @@ This replication does not dedicate certain memcached servers to store the replicas in, but instead it will store the replicas together with all of the other objects (on the 'n' next servers specified in your server list). +=item MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ + +Allows randomizing the replica reads starting point. Normally the read is +done from primary server and in case of miss the read is done from primary ++ 1, then primary + 2 all the way to 'n' replicas. If this option is set +on the starting point of the replica reads is randomized between the servers. +This allows distributing read load to multiple servers with the expense of +more write traffic. + =back =head1 RETURN