X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_behavior.pod;h=c9a7104f10aae704e4ba7df2019728adca7e7310;hb=ff452398ec3114d6af77aa5d2d77f53b18d980e3;hp=c664e99fa949545f8102b9ae62515237ca101905;hpb=1d8231fc194a56976c5bb14a75ff548ef5440191;p=m6w6%2Flibmemcached diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index c664e99f..c9a7104f 100644 --- a/docs/memcached_behavior.pod +++ b/docs/memcached_behavior.pod @@ -211,13 +211,42 @@ 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 +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 ++ 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 +This allows distributing read load to multiple servers with the expense of more write traffic. +=item MEMCACHED_BEHAVIOR_CORK + +Enable TCP_CORK behavior. This is only available as an option Linux. +MEMCACHED_NO_SERVERS is returned if no servers are available to test with. +MEMCACHED_NOT_SUPPORTED is returned if we were not able to determine +if support was available. All other responses then MEMCACHED_SUCCESS +report an error of some sort. This behavior also enables +MEMCACHED_BEHAVIOR_TCP_NODELAY when set. + +=item MEMCACHED_BEHAVIOR_KEEPALIVE + +Enable TCP_KEEPALIVE behavior. + +=item MEMCACHED_BEHAVIOR_KEEPALIVE_IDLE + +Specify time, in seconds, to mark a connection as idle. This is only available as an option Linux. + +=item MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE + +Find the current size of SO_SNDBUF. A value of 0 means either an error +occured or no hosts were available. It is safe to assume system default +if this occurs. + +=item MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE + +Find the current size of SO_RCVBUF. A value of 0 means either an error +occured or no hosts were available. It is safe to assume system default +if this occurs. + =back =head1 RETURN @@ -234,7 +263,7 @@ to data value, to taking a uin64_t. =head1 HOME To find out more information please check: -L +L =head1 AUTHOR