Oracle 5.0 Reference Manual page 1383

Table of Contents

Advertisement

Pushes an existing list of servers onto list of servers configured for a current
This adds servers to the end of the existing list, and duplicates are not checked.
The
memcached_server_st
then be applied individually to
memcached_server_st *
memcached_server_list_append (memcached_server_st *ptr,
Adds a server, with
argument, which should point to an existing
error
a pointer to the returned list.
unsigned int memcached_server_list_count (memcached_server_st *ptr);
Returns the number of the servers in the server list.
void memcached_server_list_free (memcached_server_st *ptr);
Frees the memory associated with a server list.
memcached_server_st *memcached_servers_parse (char *server_strings);
Parses a string containing a list of servers, where individual servers are separated by a comma, space,
or both, and where individual servers are of the form server[:port]. The return value is a server list
structure.
15.6.3.3.3.
libmemcached
The set-related functions within
supported by the
all the base functions (add, replace, prepend, append). For example, the function definition for
memcached_set()
memcached_return
memcached_set (memcached_st *ptr,
The
is the
ptr
and
and
value
and optional flags. For more information, see
Behaviors".
This table outlines the remainder of the set-related
functions supported by the
libmemcached
memcached_set(memc, key, key_length,
value, value_length, expiration,
flags)
memcached_add(memc, key, key_length,
value, value_length, expiration,
flags)
memcached_replace(memc, key,
key_length, value, value_length,
expiration, flags)
Developing a
structure can be used to create a list of
memcached_st
char *hostname,
unsigned int port,
memcached_return *error);
and port, to the server list in ptr. The result code is handled by the
hostname
Set Functions
libmemcached
protocol. The full definition for the different functions is the same for
memcached
is:
const char *key,
size_t key_length,
const char *value,
size_t value_length,
time_t expiration,
uint32_t flags);
structure. The
memcached_st
the corresponding value and length. You can also set the expiration
value_length
memcached
Function
Application
memcached
structures.
memcached_return
provide the same functionality as the core functions
and
key
key_length
Section 15.6.3.3.5, "Controlling
libmemcached
protocol.
Equivalent Core Function
Generic
set()
Generic
add()
Generic replace().
1363
memcached_st
servers which can
memcached
variable. The function returns
define the key name and length,
libmemcached
functions and the equivalent core
operation.
function.
structure.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents