MEMCACHE(3) 1 MEMCACHE(3)
The Memcache class
INTRODUCTION
Represents a connection to a set of memcache servers.
CLASS SYNOPSIS
Memcache
Memcache
o
bool Memcache::add (string $key, mixed $var, [int $flag], [int $expire])
o
bool Memcache::addServer (string $host, [int $port = 11211], [bool $persistent], [int $weight], [int $timeout], [int $retry_inter-
val], [bool $status], [callable $failure_callback], [int $timeoutms])
o
bool Memcache::close (void )
o
bool Memcache::connect (string $host, [int $port], [int $timeout])
o
int Memcache::decrement (string $key, [int $value = 1])
o
bool Memcache::delete (string $key, [int $timeout])
o
bool Memcache::flush (void )
o
string Memcache::get (string $key, [int &$flags])
o
array Memcache::getExtendedStats ([string $type], [int $slabid], [int $limit = 100])
o
int Memcache::getServerStatus (string $host, [int $port = 11211])
o
array Memcache::getStats ([string $type], [int $slabid], [int $limit = 100])
o
string Memcache::getVersion (void )
o
int Memcache::increment (string $key, [int $value = 1])
o
mixed Memcache::pconnect (string $host, [int $port], [int $timeout])
o
bool Memcache::replace (string $key, mixed $var, [int $flag], [int $expire])
o
bool Memcache::set (string $key, mixed $var, [int $flag], [int $expire])
o
bool Memcache::setCompressThreshold (int $threshold, [float $min_savings])
o
bool Memcache::setServerParams (string $host, [int $port = 11211], [int $timeout], [int $retry_interval = false], [bool $status],
[callable $failure_callback])
PHP Documentation Group MEMCACHE(3)