Oracle 5.0 Reference Manual page 1387

Table of Contents

Advertisement

Behavior
MEMCACHED_BEHAVIOR_DISTRIBUTION
MEMCACHED_BEHAVIOR_CACHE_LOOKUPS
MEMCACHED_BEHAVIOR_SUPPORT_CAS
MEMCACHED_BEHAVIOR_KETAMA
MEMCACHED_BEHAVIOR_POLL_TIMEOUT
MEMCACHED_BEHAVIOR_BUFFER_REQUESTS
MEMCACHED_BEHAVIOR_VERIFY_KEY
MEMCACHED_BEHAVIOR_SORT_HOSTS
MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT
15.6.3.3.6.
libmemcached
In addition to the main C library interface,
utilities that can be useful when working with and debugging
All of the command-line tools accept a number of arguments, the most critical of which is servers,
which specifies the list of servers to connect to when returning information.
The main tools are:
• memcat: Display the value for each ID given on the command line:
shell> memcat --servers=localhost hwkey
Hello world
• memcp: Copy the contents of a file into the cache, using the file name as the key:
shell> echo "Hello World" > hwkey
shell> memcp --servers=localhost hwkey
shell> memcat --servers=localhost hwkey
Hello world
• memrm: Remove an item from the cache:
shell> memcat --servers=localhost hwkey
Developing a
memcached
Description
MEMCACHED_HASH_FNV1_32, and
MEMCACHED_HASH_FNV1A_32.
Changes the method of selecting the server
used to store a given value. The default method
is MEMCACHED_DISTRIBUTION_MODULA.
You can enable consistent hashing by setting
MEMCACHED_DISTRIBUTION_CONSISTENT.
MEMCACHED_DISTRIBUTION_CONSISTENT
is an alias for the value
MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA.
Cache the lookups made to the DNS service. This can
improve the performance if you are using names instead of
IP addresses for individual hosts.
Support CAS operations. By default, this is disabled because
it imposes a performance penalty.
Sets the default distribution to
MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA
the hash to MEMCACHED_HASH_MD5.
Modify the timeout value used by poll(). Supply a
int
Buffers IO requests instead of them being sent. A get
operation, or closing the connection causes the data to be
flushed.
Forces
If set, hosts added to the list of configured hosts for a
memcached_st
sorted order. This breaks consistent hashing if that behavior
has been enabled.
In nonblocking mode this changes the value of the timeout
during socket connection.
Command-Line Utilities
libmemcached
Application
pointer for the timeout value.
to verify that a specified key is valid.
libmemcached
structure are placed into the host list in
also includes a number of command-line
memcached
1367
signed
applications.
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents