X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_behavior.html;h=1b52f0a7427da19b99c342e122ef59123ead1113;hb=c6fde8b6a27b6af31f0cf26a9cdccd54cd25734a;hp=f909c27203ba7261a92cdddb55a59054e424472c;hpb=357fb245dde952b47f190c7eff413fc5017c2049;p=awesomized%2Flibmemcached diff --git a/libmemcached/memcached_behavior.html b/libmemcached/memcached_behavior.html index f909c272..1b52f0a7 100644 --- a/libmemcached/memcached_behavior.html +++ b/libmemcached/memcached_behavior.html @@ -36,7 +36,7 @@ - + @@ -95,7 +95,7 @@
Compile and link with -lmemcached
typedef enum memcached_behavior_t memcached_behavior_t;
memcached_behavior_get
(memcached_st *ptr, memcached_behavior_t flag)¶memcached_behavior_set
(memcached_st *ptr, memcached_behavior_t flag, uint64_t data)¶Changed in version 0.17: The data
argument of memcached_behavior_set()
was changed in
+
Changed in version 0.17: The data
argument of memcached_behavior_set()
was changed in
from taking a pointer to data value, to taking a uin64_t.
memcached_behavior_t
¶memcached_behavior_t
¶memcached_behavior_t
¶memcached_behavior_t
MEMCACHED_BEHAVIOR_USE_UDP
¶The following operations will return MEMCACHED_NOT_SUPPORTED
when
executed with MEMCACHED_BEHAVIOR_USE_UDP
enabled:
All other operations are tested but are executed in a âfire-and-forgetâ mode, in which once the client has executed the operation, no attempt @@ -328,8 +323,8 @@ servers.
MEMCACHED_DISTRIBUTION_CONSISTENT
. Consistent hashing delivers better
distribution and allows servers to be added to the cluster with minimal
cache losses.
-Currently MEMCACHED_DISTRIBUTION_CONSISTENT
is an alias for the
-value type:MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
.
Currently MEMCACHED_DISTRIBUTION_CONSISTENT
is an alias for the value
+MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
.
MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED
¶Sets the default distribution to
MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
with the weighted tests.
-Makes the default hashing algorithm for keys use MD5.
MEMCACHED_HASH_MD5
.
Set this value to tune the number of bytes that may be sent before
libmemcached
should start to automatically drain the input queue (need
at least 10 IO requests sent without reading the input buffer).
Setting this value to high, may cause libmemcached to deadlock (trying to -send data, but the send will block because the input buffer in the kernel -is full).
+Setting this value to high, may cause libmemcached to deadlock (trying +to send data, but the send will block because the input buffer in the +kernel is full).
MEMCACHED_BEHAVIOR_CORK
¶Deprecated since version ?: This open has been deprecated with the behavior now built and used -appropriately on selected platforms.
+Deprecated since version ?: This option has been deprecated with the behavior now built in and +used appropriately on selected platforms.
MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY
¶When enabled the prefix key will be added to the key when determining
-server by hash. See MEMCACHED_CALLBACK_NAMESPACE
for additional
+server by hash. See MEMCACHED_CALLBACK_NAMESPACE
for additional
information.
libmemcached
behavior can be modified by using memcached_behavior_set()
.
+
libmemcached
behavior can be modified by using memcached_behavior_set()
.
Default behavior is the library strives to be quick and accurate. Some behavior,
while being faster, can also result in not entirely accurate behavior (for
-instance, memcached_set()
will always respond with MEMCACHED_SUCCESS
).
memcached_behavior_get()
takes a behavior flag and returns whether or not
+instance, memcached_set()
will always respond with MEMCACHED_SUCCESS
).
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. Calls to
-memcached_behavior_set()
will flush and reset all connections.
memcached_behavior_set()
changes the value of a particular option of the client.
+It takes both a flag
and a value
. For simple on or off options you just
+need to pass in a value of 1. Calls to memcached_behavior_set()
will flush and
+reset all connections.
memcached_behavior_get()
returns either the current value of the key, or 0
-or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set()
+
memcached_behavior_get()
returns either the current value of the key, or 0
+or 1 on simple flag behaviors (1 being enabled). memcached_behavior_set()
returns failure or success.
The data
argument of memcached_behavior_set()
was changed in version
+
The data
argument of memcached_behavior_set()
was changed in version
0.17 from taking a pointer to data value, to taking a uin64_t.