Oracle 5.0 Reference Manual page 2821

Table of Contents

Advertisement

Mysqlnd Memcache plugin (mysqlnd_memcache)
Array Key
Table 20.78. Mapping entry structure
Array Key
prefix
schema_name
table_name
id_field_name
separator
fields
Examples
Example 20.393.
mysqlnd_memcache_get_config
<?php
$mysqli = new mysqli("host", "user", "passwd", "database");
$memc = new Memcached();
$memc->addServer("host", 11211);
mysqlnd_memcache_set($mysqli, $memc);
var_dump(mysqlnd_memcache_get_config($mysqli));
?>
The above example will output:
array(4) {
["memcached"]=>
Description
available containers and mappings. The result of
that query is provided in the mappings element.
Description
A prefix used while accessing data via memcache.
With the MySQL InnoDB Memcache Deamon
plugin, this usually begins with @@ and ends with
a configurable separator. This prefix is placed in
front of the key value while using the memcache
protocol.
Name of the schema (database) which contains
the table being accessed.
Name of the table which contains the data
accessible via memcache protocol.
Name of the database field (column) with the
id used as key when accessing the table via
memcache. Often this is the database field having
a primary key.
The separator used to split the different field
values. This is needed as memcache only
provides access to a single value while MySQL
can map multiple columns to this value.
An array with the name of all fields available for
this mapping.
example
2801
Note
The separator, which
can be set in the MySQL
Server configuration,
should not be part of
any value retrieved via
memcache because
proper mapping can't be
guaranteed.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents