X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_behavior.pod;h=2e0240afbe4c0c88a9463e22267739dc79f3543e;hb=f3e57017272f082ff5319877af22fbe3a3d78511;hp=0288feb0807e7efd396d799b538e60b81f6c6d92;hpb=f10c3a3677bdd5a1848e7497a674a938956d7f3d;p=awesomized%2Flibmemcached diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index 0288feb0..2e0240af 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); @@ -83,7 +83,7 @@ environments). Makes the default hashing algorithm for keys use MD5. The value can be set to either MEMCACHED_HASH_DEFAULT, MEMCACHED_HASH_MD5, MEMCACHED_HASH_CRC, MEMCACHED_HASH_FNV1_64, MEMCACHED_HASH_FNV1A_64, MEMCACHED_HASH_FNV1_32, MEMCACHED_HASH_FNV1A_32, MEMCACHED_HASH_JENKINS, MEMCACHED_HASH_HSIEH, and MEMCACHED_HASH_MURMUR. -Each hash has it's advantages and it's weaknesses. If you dont know or dont care, just go with the default. +Each hash has it's advantages and it's weaknesses. If you don't know or don't care, just go with the default. Support for MEMCACHED_HASH_HSIEH is a compile time option that is disabled by default. To enable support for this hashing algorithm, configure and build libmemcached with the --enable-hash_hsieh. =item MEMCACHED_BEHAVIOR_DISTRIBUTION @@ -218,6 +218,28 @@ 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. +=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_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 +256,7 @@ to data value, to taking a uin64_t. =head1 HOME To find out more information please check: -L +L =head1 AUTHOR