X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_behavior.pod;h=55e82d8d2d7f7032283d73f45b1bd2cc1717e144;hb=89aca153336105c0f29903e31ebb6bd743d95307;hp=3b33d7bf76543d22416bd3e2522235e08377507c;hpb=a11143256264a00e7437fa23ec8ff5196c5a5c0b;p=awesomized%2Flibmemcached diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index 3b33d7bf..55e82d8d 100755 --- a/docs/memcached_behavior.pod +++ b/docs/memcached_behavior.pod @@ -8,40 +8,50 @@ C Client Library for memcached (libmemcached, -lmemcached) =head1 SYNOPSIS -#include + #include -unsigned long long memcached_behavior_get(memcached_st *ptr, memcached_behavior flag); -memcached_return memcached_behavior_set(memcached_st *ptr, memcached_behavior flag, void *data); + unsigned long long + memcached_behavior_get (memcached_st *ptr, + memcached_behavior flag); -=head1 DESCRIPTION + memcached_return + memcached_behavior_set (memcached_st *ptr, + memcached_behavior flag, + void *data); +=head1 DESCRIPTION libmemcached(3) behavior can be modified by use memcached_behavior_set(). Default behavior is the library strives to be quick and accurate. Some -behavior, like , while being faster can also result in not entirely accurate -behavior (for instance memcached_set will always respond with -MEMCACHED_SUCCES). +behavior, while being faster, can also result in not entirely accurate +behavior (for instance, memcached_set() will always respond with +C). memcached_behavior_get() takes a behavior flag and returns whether or not that behavior is currently enabled in the client. memcached_behavior_set() changes the value of a particular option of the client. It takes both a flag (listed below) and a value. For simple on or -off options you just need to pass in a value of 1. +off options you just need to pass in a value of 1. Calls to +memcached_behavior_set() will flush and reset all connections. -=item MEMCACHED_BEHAVIOR_NO_BLOCK, +=over 4 -Causes libmemcached(3) to use asycronous IO. This is the fastest transport +=item MEMCACHED_BEHAVIOR_NO_BLOCK + +Causes libmemcached(3) to use asychronous IO. This is the fastest transport available. -=item MEMCACHED_BEHAVIOR_TCP_NODELAY, +=item MEMCACHED_BEHAVIOR_TCP_NODELAY Turns on the no-delay feature for connecting sockets (may be faster in some -setups). +environments). + +=item MEMCACHED_BEHAVIOR_MD5_HASHING -=item MEMCACHED_BEHAVIOR_MD5_HASHING, +Makes the default hashing algorithm for keys use MD5. -Makes the default hashing algorithm for keys use RSA's MD5. +=back =head1 RETURN @@ -51,11 +61,12 @@ returns whether or not the behavior was enabled. =head1 HOME -To find out more information please check: http://tangent.org/552/libmemcached.html +To find out more information please check: +L =head1 AUTHOR -Brian Aker, brian@tangent.org +Brian Aker, Ebrian@tangent.orgE =head1 SEE ALSO