X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libmemcached%2Fconfiguration.html;h=8f59e94a496e45a3664079aae924532bce47e2aa;hb=5fe34bb79f817fe734d3e300720ac8a361454f39;hp=098a25cec17ff9796fd3fdda2ddbf624f69f2906;hpb=357fb245dde952b47f190c7eff413fc5017c2049;p=awesomized%2Flibmemcached diff --git a/libmemcached/configuration.html b/libmemcached/configuration.html index 098a25ce..8f59e94a 100644 --- a/libmemcached/configuration.html +++ b/libmemcached/configuration.html @@ -21,10 +21,10 @@ - - - - + + + + @@ -182,19 +182,51 @@
Compile and link with -lmemcached
-memcached
(const char *string, size_t string_length)¶memcached
(const char *string, size_t string_length)¶Parameters: |
|
+
---|---|
Returns: | allocated and initialized |
+
libmemcached_check_configuration
(const char *option_string, size_t length, char *error_buffer, size_t error_buffer_size)¶libmemcached_check_configuration
(const char *option_string, size_t length, char *error_buffer, size_t error_buffer_size)¶Parameters: |
|
+
---|---|
Returns: |
|
+
--SERVER=<servername>:<optional_port>/?<optional_weight>
--SERVER=<servername>:<optional_port>/?<optional_weight>
Provide a servername to be used by the client.
Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1.
@@ -214,7 +246,7 @@ server getting a default weight of 1.--SOCKET="<filepath>/?<optional_weight>"
--SOCKET="<filepath>/?<optional_weight>"
Provide a filepath to a UNIX socket file. Providing a weight will cause weighting to occur with all hosts with each server getting a default weight of 1.
@@ -222,32 +254,32 @@ of 1.--VERIFY-KEY
--VERIFY-KEY
Verify that keys that are being used fit within the design of the protocol being used.
--REMOVE_FAILED_SERVERS
--REMOVE_FAILED_SERVERS
Enable the behavior MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS
.
--BINARY-PROTOCOL
--BINARY-PROTOCOL
Force all connections to use the binary protocol.
--BUFFER-REQUESTS
--BUFFER-REQUESTS
Please see MEMCACHED_BEHAVIOR_BUFFER_REQUESTS
.
--CONFIGURE-FILE=
--CONFIGURE-FILE=
Provide a configuration file to be used to load requests. Beware that by
using a configuration file libmemcached
will reset memcached_st
based
on information only contained in the file.
--CONNECT-TIMEOUT=
--CONNECT-TIMEOUT=
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT
.
--DISTRIBUTION=
--DISTRIBUTION=
Set the distribution model used by the client.
See memcached_behavior_set()
for more details.
--HASH=
--HASH=
Set the hashing algorithm used for placing keys on servers.
--HASH-WITH-NAMESPACE
--HASH-WITH-NAMESPACE
When enabled the prefix key will be added to the key when determining which server to store the data in.
--NOREPLY
Enable âno replyâ for all calls that support this. It is highly recommended
+--NOREPLY
+
Enable "no reply" for all calls that support this. It is highly recommended that you use this option with the binary protocol only.
--NUMBER-OF-REPLICAS=
--NUMBER-OF-REPLICAS=
Set the number of servers that keys will be replicated to.
--RANDOMIZE-REPLICA-READ
--RANDOMIZE-REPLICA-READ
Select randomly the server within the replication pool to read from.
--SORT-HOSTS
--SORT-HOSTS
When adding new servers always calculate their distribution based on sorted naming order.
--SUPPORT-CAS
--SUPPORT-CAS
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_SUPPORT_CAS
--USE-UDP
--USE-UDP
--NAMESPACE=
--NAMESPACE=
A namespace is a container that provides context for keys, only other requests that know the namespace can access these values. This is accomplished by prepending the namespace value to all keys.
@@ -330,13 +362,13 @@ accomplished by prepending the namespace value to all keys.--POOL-MIN
--POOL-MIN
Initial size of pool.
--POOL-MAX
--POOL-MAX
Maximize size of the pool.
--TCP-NODELAY
--TCP-NODELAY
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_TCP_NODELAY
--TCP-KEEPALIVE
--TCP-KEEPALIVE
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_TCP_KEEPALIVE
--RETRY-TIMEOUT=
--RETRY-TIMEOUT=
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_RETRY_TIMEOUT
--SERVER-FAILURE-LIMIT=
--SERVER-FAILURE-LIMIT=
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT
--SND-TIMEOUT=
--SND-TIMEOUT=
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_SND_TIMEOUT
--SOCKET-RECV-SIZE=
--SOCKET-RECV-SIZE=
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE
--SOCKET-SEND-SIZE=
--SOCKET-SEND-SIZE=
See memcached_behavior_set()
for MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE
--POLL-TIMEOUT=
Set the timeout used by poll(3).
+--POLL-TIMEOUT=
+Set the timeout used by poll(3).
--IO-BYTES-WATERMARK=
--IO-BYTES-WATERMARK=
--IO-KEY-PREFETCH=
--IO-KEY-PREFETCH=
--IO-MSG-WATERMARK=
--IO-MSG-WATERMARK=
--TCP-KEEPIDLE
--TCP-KEEPIDLE
--RCV-TIMEOUT=
--RCV-TIMEOUT=
INCLUDE
INCLUDE
Include a file in configuration.
-Unlike âCONFIGURE-FILE= this will not reset memcached_st
.
--CONFIGURE-FILE=
this will not reset memcached_st
.
RESET
RESET
Reset memcached_st
and continue to process.
END
END
End configuration processing.
ERROR
ERROR
End configuration processing and throw an error.
LIBMEMCACHED
¶LIBMEMCACHED
¶
memcached()
returns a pointer to the memcached_st that was
-created (or initialized). On an allocation failure, it returns NULL.
memcached()
returns a pointer to the memcached_st
that was created (or
+initialized). On an allocation failure, it returns NULL.