Oracle 5.0 Reference Manual page 1393

Table of Contents

Advertisement

Configuration option
memcache.allow_failover
memcache.max_failover_attempts
memcache.chunk_size
memcache.default_port
memcache.hash_strategy
memcache.hash_function
To create a connection to a
connection options. For example:
<?php
$cache = new Memcache;
$cache->connect('localhost',11211);
?>
This opens an immediate connection to the specified server.
To use multiple
memcached
addServer():
bool Memcache::addServer ( string $host [, int $port [, bool $persistent
[, int $weight [, int $timeout [, int $retry_interval
[, bool $status [, callback $failure_callback
]]]]]]] )
The server management mechanism within the
as it controls the main interface to the
selected through the hashing mechanism.
To create a simple connection to two
<?php
$cache = new Memcache;
$cache->addServer('192.168.0.100',11211);
$cache->addServer('192.168.0.101',11211);
?>
In this scenario, the instance connection is not explicitly opened, but only opened when you try to store
or retrieve a value. To enable persistent connections to
argument to true. This is the default setting, and causes the connections to remain open.
To help control the distribution of keys to different instances, use the global
memcache.hash_strategy
add another weight to each server, which effectively increases the number of times the instance entry
Developing a
memcached
Default
1
20
8192
11211
standard
crc32
server, create a new
memcached
servers, you need to add servers to the memcache object using
php-memcache
memcached
memcached
setting. This sets the hashing mechanism used to select. You can also
1373
Application
Description
Specifies whether another server in the list
should be queried if the first server selected
fails.
Specifies the number of servers to try before
returning a failure.
Defines the size of network chunks used to
exchange data with the
Defines the default port to use when
communicating with the
Specifies which hash strategy to use. Set to
to enable servers to be added
consistent
or removed from the pool without causing the
keys to be remapped to other servers. When
set to standard, an older (modula) strategy
is used that potentially uses different servers
for storage.
Specifies which function to use when
mapping keys to servers.
standard CRC32 hash.
hashing algorithm.
Memcache
module is a critical part of the interface
instances and how the different instances are
instances:
instances, set the
memcached
server.
memcached
servers.
memcached
uses the
crc32
uses the FNV-1a
fnv
object and then specify the
$persistent

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents